Skip to main content

hessian

Function hessian 

Source
pub fn hessian(expr: &Expr, vars: &[&str]) -> Vec<Vec<Expr>>
Expand description

The Hessian H[i][j] = ∂²f/∂xᵢ∂xⱼ as an n×n matrix of simplified expressions. Symmetric by Clairaut’s theorem (computed both ways implicitly via repeated differentiation).