此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Mathematica HowTo
How to | Plot Functions of One Variable
Mathematica offers multiple ways of plotting functions of one variable. These include ordinary plots, log plots, parametric plots, and polar plots.
Plot the function sin(x):
In[1]:=
Click for copyable input
Out[1]=
    
Plot several functions:
In[2]:=
Click for copyable input
Out[2]=
    
Plot the function ⅇ^(x^2) on a log-scaled vertical axis:
In[3]:=
Click for copyable input
Out[3]=
    
Plot the function tanh(x) on a log-scaled horizontal axis:
In[4]:=
Click for copyable input
Out[4]=
    
Plot the function ⅇ^(x^2) on log-scaled vertical and horizontal axes:
In[5]:=
Click for copyable input
Out[5]=
    
Plot the parametric curve defined by (x,y)=(2 sin(t),cos(t)):
In[6]:=
Click for copyable input
Out[6]=
Use ParametricPlot3D to plot the parametric curve defined by (x,y,z)=(5 cos(u),5 sin(u),u+sin(u)):
In[7]:=
Click for copyable input
Out[7]=
    
Make a polar plot of the function cos^2(t):
In[8]:=
Click for copyable input
Out[8]=
Use ContourPlot to plot an implicitly defined function:
In[9]:=
Click for copyable input
Out[9]=