linalg(deprecated)
hessian
compute the Hessian matrix of an expression
Calling Sequence
Parameters
Description
Examples
hessian(expr, vars)
expr
-
scalar expression
vars
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.
with⁡linalg:
hessian⁡x⁢y⁢z,x,y,z
0zyz0xyx0
hessian⁡x2⁢y+3⁢x⁢y2,x,y
2⁢y2⁢x+6⁢y2⁢x+6⁢y6⁢x
See Also
diff
linalg(deprecated)[grad]
LinearAlgebra
VectorCalculus[Hessian]
Download Help Document