Grad

As of Version 9.0, vector analysis functionality is built into the Wolfram Language

Grad[f]
gives the gradient, , of the scalar function f in the default coordinate system.


gives the gradient of f in the coordinate system coordsys.

更多信息更多信息

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

In[1]:=
Click for copyable input

Gradient of a function in Cartesian coordinates:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input

Recover the original function using DSolve:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=