-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
ζ function works incorrectly on some complex inputs #7169
Comments
This seems to be because the |
Matlab gives:
so it may be possible to compute this accurately without arbitrary precision. (This was not entirely clear to me since the (Scipy's zeta function does not support complex arguments.) |
@ViralBShah, where did this |
Yes I think you're right. That's an implementation I threw together several
|
The following seems to do a better job. It is based on my Hurwitz ζ function, which itself is based on differentiating the Stirling asymptotic series for the digamma function, specialized for the case of
The computation of the shift As a bonus, however, it seems to be nearly 10x faster than our current |
We will have to look at the git history. I did not write the eta implementation. |
Just saw Jeff's comment that he wrote it. |
It might also be nice to have a It could use almost the same implementation, but the cutoff for the recurrence would need to change. (The Scipy |
Go for it. Seems like a good thing to have. |
Although now that I look at it further, I'm less convinced that The basic problem is that Because of this, I'm inclined to wait until there is evidence of a real-world application for |
For example,
But this answer is not correct.
and
The text was updated successfully, but these errors were encountered: