此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

Div

Div[f]
gives the divergence, DelCenterDotf, of the vector field f in the default coordinate system.
Div[f, coordsys]
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.
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]=