gradient()
Calculate the gradient of a scalar, multivariate function.
A scalar, multivariate function.
The vector for which the gradient is evaluated.
function value and gradient