Previous Up Next

13.7.4  Divergence

Recall that the divergence of a vector field F=[F1,…,Fn] with variables [x1,…,xn] is

  divF=
∂ F1
x1
+⋯ +
∂ Fn
xn
.

The divergence command computes the divergence of a vector field.

Example

divergence([x*z,-y^2,2*x^y],[x,y,z])
     
−2 y+z           

Previous Up Next