To compute the gradient of a function, it can be made with matematica using Grad[f[x,y],{x,y}]
Suprisingly, it's not possible to compute the Hessian matrix (something as HessianMatrix[f[x,y],{x,y}], doesn't exist (I check in Wolfram website here, but nothing relevant). Is it possible that mathematica can't compute the Hessian of a function ? And if no (what I guess), how can I do ?
D[f[x, y], {{x, y}, 2}]– cvgmt Feb 19 '21 at 13:20HessianH[f_, x_List?VectorQ] := D[f, {x, 2}]thenHessianH[f[x, y], {x, y}] == D[f[x, y], {{x, y}, 2}]evaluates toTrue– Bob Hanlon Feb 19 '21 at 14:11