MATHEMATICA FEATURED EXAMPLE

Curve in Spherical Coordinates

The following is a curve expressed in spherical coordinates. It starts at the origin and moves to the surface of the unit sphere.

    
In[45]:=
Click for copyable input
In[46]:=
Click for copyable input
Out[46]=
A plot of the curve inside the unit sphere. Notice the coloring, which indicates it starts quite slowly and then speeds up as it gets closer to the surface:
In[47]:=
Click for copyable input
Out[47]=
Compute the length of the curve. It is about 11.2 radii:
In[48]:=
Click for copyable input
Out[48]=
In[49]:=
Click for copyable input
Out[49]=
New to Mathematica? Find your learning path »
Have a question? Ask support »