Functions of two variables
Here is a simple function of two variables
In[1]:=
Out[1]=
Evaluated at a few points:
In[2]:=
Out[2]=
Out[3]=
Out[4]=
Out[5]=
The following plots our graph for values of x and y lying in the square: -1<x<1 and -1<y<1:
In[6]:=
Out[6]=
The BoxRatios→Automatic option makes each axis appear to be at the same scale
In[7]:=
Out[7]=
We can use the option to change our point of view:
In[8]:=
Out[8]=
Here
In[9]:=
In[10]:=
Out[10]=
The Coutours option allows us to plot more level sets
In[11]:=
Out[11]=
Here we color the contours with colors
In[12]:=
Out[12]=
Here's an example where we render some pretty pictures with Mathematica
In[13]:=
The larger we make PlotPoints, the smoother the surface will appear, but the longer it will take to draw
Mesh->False takes away the black grid lines from our surface
In[14]:=
Out[14]=
PlotPoints->100 makes the level sets appear smoother
In[15]:=
Out[15]=
We can specify which contour lines to plot with the Contours Option
In the folowing plot, we choose level sets correspoinding to F[x,y]=.5, .75, and 1
In[16]:=
Out[16]=
Contours can also be used to specify the number of contour lines to plot as below.
We also have increased PlotPoints which makes the level curves more smooth.
ContourLines->False removes the black level set lines from the image.
In[17]:=
Out[17]=
Created by Mathematica (September 20, 2004)