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
divergence
function does not support tensor derivatives. If the inputV
is a tensor field or a matrix rather than a vector, then thedivergence
function returns an error.Symbolic Math Toolbox™ currently does not support the
dot
orcross
functions for symbolic matrix variables and functions of typesymmatrix
andsymfunmatrix
. 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 symmatrix
andmethods symfunmatrix
.