linalg(deprecated)/hessian - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/hessian

linalg(deprecated)

  

hessian

  

compute the Hessian matrix of an expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

hessian(expr, vars)

Parameters

expr

-

scalar expression

vars

-

vector or list of variables

Description

• 

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.

Examples

Important: The linalg package has been deprecated. Use the superseding command VectorCalculus[Hessian], instead.

withlinalg:

hessianxyz,x,y,z

0zyz0xyx0

(1)

hessianx2y+3xy2,x,y

2y2x+6y2x+6y6x

(2)

See Also

diff

linalg(deprecated)[grad]

LinearAlgebra

VectorCalculus[Hessian]