Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Coordinate Systems >

Div

Div[f]
gives the divergence, , of the vector field f in the default coordinate system.

gives the divergence of f in the coordinate system coordsys.
  • The vector field f should be a 3-element list where each element is a function of the coordinates of the appropriate coordinate system.
Compute the divergence of a vector field:
Verify that the divergence of the curl of a vector field is 0:
Needs["VectorAnalysis`"]
Compute the divergence of a vector field:
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Verify that the divergence of the curl of a vector field is 0:
In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF