divergence
Divergence of symbolic vector field
Description
returns the divergence of symbolic vector field
d = divergence(V,X)V with respect to vector X in
Cartesian coordinates. Vectors V and X
must have the same length.
returns the divergence of the vector field d = divergence(V)V with respect to a
default vector constructed from the symbolic variables in
V.
Examples
Input Arguments
Limitations
The
divergencefunction does not support tensor derivatives. If the inputVis a tensor field or a matrix rather than a vector, then thedivergencefunction returns an error.Symbolic Math Toolbox™ currently does not support the
dotorcrossfunctions for symbolic matrix variables and functions of typesymmatrixandsymfunmatrix. If vector calculus identities involve dot or cross products, then the toolbox displays those identities in terms of other supported functions instead. To see a list of all the functions that support symbolic matrix variables and functions, use the commandsmethods symmatrixandmethods symfunmatrix.
