-
Notifications
You must be signed in to change notification settings - Fork 5
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
A precision problem on elliptic123 #20
Comments
This was my code originally (I think)... I’ll see what I can do. Thanks!
|
Dear Will, Best wishes, |
An update: Currently, I have added a nasty line to avoid the NaN problem in function elliptic123, which is just a temporary solution.
I hope this could help a little bit. Best wishes, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear virogr,
there might be a problem with the precision of elliptic123. I run the following code on 64bit linux version of Matlab:
K>> [~, K1]= elliptic123(pi/2, 1+2.*eps(0.5))
K1 =
K>> [~, K1]= elliptic123(pi/2, 1)
K1 =
K>> ellipticE(pi/2, 1+2.*eps(0.5))
ans =
K>> ellipticE(pi/2, 1)
ans =
Thanks!
Best wishes,
Jinchuan
The text was updated successfully, but these errors were encountered: