zetaRS approximates Riemann's zeta(0.5 + i*t) for large t

Version 1.2.0 (7.74 KB) by Thomas
Fast computation of Riemann's zeta function on the critical strip using the Riemann Siegel formula.
15 Downloads
Updated 9 Dec 2020

View License

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
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0

Improved precision, cleared some errors.

1.0.0