-
Notifications
You must be signed in to change notification settings - Fork 8
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
3F2 returns NaNs #79
Comments
I have also noticed this was not an issue in v0.3.20. |
Thank you for the bug report! To be brief, I do know how to fix it: it appears to be a pole/pole situation. I will try to get a fix pushed, but don't hold your breath! The epsilon perturbation is a good patch for the moment because the rational approximations are stable in the neighbourhood of a pole/pole (like the barycentric formula). In case you're wondering how the pole/pole get simplified technically, it just means a careful analysis of the case where |
I have found several cases where
_3F2
incorrectly returnsNaN
. For example:It may be similar to #73 . But I do not see any simple pattern in my cases. The suggestion in that thread to perturb the argument gives the correct results (compared to e.g. Mathematica).
All cases I have found NaNs:
(all evaluated at
z=1.0
):The text was updated successfully, but these errors were encountered: