gradient(f)
Returns the gradient of function f in Cartesian coordinates. Function f maps Rn into R.
See also partial derivative divergence laplacian jacobian
Example
f(x,y,z)=2*x+3*y^2-sin(z)
f(x,y,z)=2*x+3*y^2-sin(z)
g=gradient(f)
g(x, y, z) = (2, 6*y, -cos(z))