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

Generalized zeta function imprecise for large negative s #410

Open
Expander opened this issue Oct 12, 2022 · 0 comments
Open

Generalized zeta function imprecise for large negative s #410

Expander opened this issue Oct 12, 2022 · 0 comments

Comments

@Expander
Copy link

The current implementation of the generalized zeta function $\zeta(s,z)$ suffers from an imprecision for large negative $s$:

julia> SpecialFunctions.zeta(-100, 2.0)
-1.921642939869165e44

The correct result should be $-1$, because for negative integer $s$ one would have
$$\zeta(-n,a)=-\frac{B_{n+1}(a)}{n+1}$$
[Wikipedia]
For example Mathematica gives the correct result:

In[]:= Zeta[-100, 2] // N[#,17]&                                            
Out[]= -1.0000000000000000
In[]:= -BernoulliB[100 + 1, 2]/(100 + 1)
Out[]= -1
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

1 participant