Divergence of a vector field (div)
Divergence of a vector field.
How to write it
div(field, variables)
- field
- The components of the field. Takes a list.
- variables
- The variables, in brackets. Takes a list of variables.
Examples
div([x, y, z], [x, y, z])In the solver,
Open in the solverdiv([x, y, z], [x, y, z])gives3.
Related functions
- grad
Gradient of an expression: the list of its partial derivatives.
- diff
Derivative of an expression with respect to one or more variables.
- hessian
Hessian matrix of an expression: its second partial derivatives.
- derivative
The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.
- integrate
Antiderivative of an expression, or its definite integral over a range.
- curl
Curl of a vector field in three variables.