This notebook contains the examples shown in class on November 12, 2015. It can be used as a template for plotting the graph of a function of two variables in a three-dimensional coordinate system.
We make use of sympy plotting.
from sympy import init_session
from sympy.plotting import *
init_session()
This is the function on one version of the quiz:
plot3d(exp(-x**2-y**2),(x,-2,2),(y,-2,2))
And the function from the other version of the quiz:
plot3d(1/(1+x**2+y**2),(x,-2,2),(y,-2,2))
And finally the function from the example used in class on Tuesday, November 10.
plot3d(x/(1+x**2+y**2),(x,-5,5),(y,-5,5))