zetaRS approximates Riemann's zeta(0.5 + i*t) for large t
Run for example "zetaRS(100000)" to obtain an approximate value of zeta(0.5 + i*100000).
For large t, the routine is much faster than the zeta function that comes with Matlab's symbolic toolbox. The error is very small for large t, but zetaRS is not very precise for small t.
Example: >> tic; zetaRS(10000000), toc
ans = 11.4580 - 8.6434i
Elapsed time is 0.009604 seconds.
>> tic; zeta(0.5+10000000i), toc
ans = 11.4580 - 8.6434i
Elapsed time is 175.978625 seconds.
Source is: Xavier Gourdon and Pascal Sebah: Numerical evaluation of the Riemann Zeta-function, Numbers, constants and computation ,
or: http://numbers.computation.free.fr/Constants/Miscellaneous/zetaevaluations.pdf
Cite As
Thomas (2024). zetaRS approximates Riemann's zeta(0.5 + i*t) for large t (https://www.mathworks.com/matlabcentral/fileexchange/83278-zetars-approximates-riemann-s-zeta-0-5-i-t-for-large-t), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.