Calculate divergence of a vector field given by the arrays fx, fy, and fz or fx, fy respectively.
d d d div F(x,y,z) = -- F(x,y,z) + -- F(x,y,z) + -- F(x,y,z) dx dy dz
The coordinates of the vector field can be given by the arguments x, y, z or x, y respectively.
See also: curl, gradient, del2, dot.
Package: octave