divergence(f)

Returns the divergence of function f in Cartesian coordinates. Function f maps Rn into Rn.

Wikipedia


See also derivative partial laplacian jacobian curl 


Example


f(x,y)=(x*x, y)

f(x,y)=(x*x, y)

df = divergence(f)

df(x, y) = 1+2*x