compute the Hessian matrix of an expression
vector or list of variables
Important: The linalg package has been deprecated. Use the superseding command VectorCalculus[Hessian], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The procedure hessian(expr, vars) computes the Hessian matrix of expr with respect to vars.
The matrix result is n x n, where n is the length of vars. The (i, j)th entry of the matrix result is diff(expr, vars[i], vars[j]).
The command with(linalg,hessian) allows the use of the abbreviated form of this command.
Download Help Document
What kind of issue would you like to report? (Optional)