Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the Hessian matrix of a function with respect to a list of variables
ResourceFunction["HessianMatrix"][expr,{var1,var2,…}] computes the Hessian matrix of the expression expr with respect to the given variables. |
Compute the Hessian matrix of an expression:
In[1]:= |
Out[1]= |
Compute the Hessian matrix of another expression:
In[2]:= |
Out[2]= |
Compute the Hessian matrix of another expression:
In[3]:= |
Out[3]= |
Take the determinant of this result:
In[4]:= |
Out[4]= |
Compare this to the result obtained using of ResourceFunction["HessianDeterminant"]:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License