I have a C++ program that uses the equation
ζ(s)=∞∑n=11ns
to calculate the Riemann zeta function.
This equation converges fast for larger values, like 183, but converges much slower for smaller values, like 2. For example, calculating the value of ζ(2) took an hour to be accurate to 5 digits, but one second for ζ(183) to be accurate to 100 digits.
Are there any equations for calculating the Riemann zeta function that are faster for calculating smaller values?
Because I am coding in C++, I cannot use ∫ (without implementing external libraries, which is not really an option here).
No comments:
Post a Comment