DifferentialGeometry[Tools]
Divergence
Calling Sequence
Parameters
Description
Examples
Divergence(X)
X
-
a vector
The divergence of a vector, as defined by the usual formula in vector calculus, is not an intrinsic operator which can be defined in a coordinate independent manner. Still, for a number of purposes it is helpful to have this simple procedure.
The command Divergence is part of the DifferentialGeometry:-Tools package, and so can be used in the form Divergence(...) only after executing the commands with(DifferentialGeometry) and with(Tools) in that order. It can always be used in the long form DifferentialGeometry:-Tools:-Divergence.
with⁡DifferentialGeometry:with⁡Tools:
Example 1.
First initialize a 3-dimensional manifold M with coordinates [x, y, z].
DGsetup⁡x,y,z,M:
X≔DGzip⁡a,b,c⁡x,y,z,D_x,D_y,D_z,plus
X≔a⁡x,y,z⁢D_x+b⁡x,y,z⁢D_y+c⁡x,y,z⁢D_z
Divergence⁡X
∂∂zc⁡x,y,z+∂∂yb⁡x,y,z+∂∂xa⁡x,y,z
See Also
DifferentialGeometry
Tools
DGzip
CovariantDerivative
ExteriorDerivative
Download Help Document