Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hessian Matrix formula is wrong #12

Closed
dedekindcut opened this issue Oct 25, 2023 · 2 comments
Closed

Hessian Matrix formula is wrong #12

dedekindcut opened this issue Oct 25, 2023 · 2 comments

Comments

@dedekindcut
Copy link
Contributor

From the manual:

Screenshot 2023-10-24 at 10 07 27 PM

The Hessian is the matrix of second order partial derivatives, so for 3x3 matrices and higher the matrix should still consist of $\dfrac{\partial^2}{\partial x_i \partial x_j}$. Currently for 3x3 hmat generates a matrix with elements such as $\dfrac{\partial^3}{\partial x \partial z}$, which is incorrect. The superscript in the numerator should always be 2 no matter the dimension.

From the wikipedia page:

Screenshot 2023-10-24 at 10 11 46 PM

Thanks for all your hard work on this package! It's now a must have for me when using Typst.

@dedekindcut
Copy link
Contributor Author

#13

@Leedehai
Copy link
Owner

Fixed by that PR #13. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants