-
Notifications
You must be signed in to change notification settings - Fork 152
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
[BUG] exp
of SMatrix
fails numerically
#1295
Comments
It looks like the method is described in Corollary 2.4 of this paper. It seems a fix will require re-doing the algebra. Check my math, but every term appears to be of the form Using the right-hand version should avoid the range issues of computing the exp and hyperbolics separately. It should be a pretty simple PR. |
That is precisely the method, thank you for sharing @mikmoore. I am trying to work my way to reach the result you shared, but no success so far. Could you perhaps share the steps so that we could both be sure of the derivation before a PR is submitted? Which identities are used in your derivation? |
I just used the definitions Sorry for recycling |
You used the identity The identities I know are displayed below: Reference: https://hepweb.ucsd.edu/ph110b/110b_notes/node49.html |
If |
Thank you. I thought that the identity only worked with the imaginary part. I will try to check the expression you shared above and submit a PR. |
MWE:
The text was updated successfully, but these errors were encountered: