[Paper Review] The High Precision Numerical Calculation of Stieltjes Constants. Simple and Fast Algorithm
This paper presents a highly efficient and mathematically simple algorithm for computing Stieltjes constants to ultra-high precision—up to 80,000 significant digits—by leveraging a hypergeometric-like expansion of the Riemann zeta function and high-precision evaluations of ζ(1 + jε) at equally spaced real arguments. The method's success relied on resolving a critical bug in PARI/GP’s zeta function computation, which previously introduced errors at extreme precision levels.
We present a simple but efficient method of calculating Stieltjes constants at a very high level of precision, up to about 80000 significant digits. This method is based on the hypergeometric-like expansion for the Riemann zeta function presented by one of the authors in 1997 \cite{Maslanka 1}. The crucial ingredient in this method is a sequence of high-precision numerical values of the Riemann zeta function computed in equally spaced real arguments, i.e. $ζ(1+\varepsilon),ζ(1+2\varepsilon),ζ(1+3\varepsilon),...$ where $\varepsilon$ is some real parameter. (Practical choice of $\varepsilon$ is described in the main text.) Such values of zeta may be readily obtained using the PARI/GP program, which is especially suitable for this.
Motivation & Objective
- To develop a numerically efficient and mathematically simple method for computing Stieltjes constants at extremely high precision.
- To overcome the extreme slow convergence of the classical definition of Stieltjes constants, which requires astronomical sums for high accuracy.
- To enable the reliable computation of Stieltjes constants up to 80,000 significant digits, a regime previously inaccessible due to computational and numerical instability.
- To identify and resolve a critical bug in PARI/GP’s zeta function implementation that corrupted results at ultra-high precision, particularly affecting the algorithm’s reliability.
- To provide a robust foundation for deriving new, more accurate asymptotic expansions of Stieltjes constants in future work.
Proposed method
- The method uses a hypergeometric-like expansion of the Riemann zeta function, originally developed by one of the authors in 1997, as its core analytical framework.
- It computes high-precision values of the Riemann zeta function at real arguments ζ(1 + jε) for j = 1, 2, ..., using the PARI/GP computer algebra system.
- The algorithm relies on the regularized sequence of zeta values ζ(1 + jε) to extract Stieltjes constants via finite difference techniques and series inversion.
- The precision of the zeta function evaluations is critical; the authors used PARI/GP with custom configurations and tested multiple compilers, operating systems, and hardware platforms to ensure correctness.
- Extensive testing across multiple environments and versions of PARI/GP was conducted to isolate and identify a rounding error in the computation of Bernoulli numbers within the Euler-Maclaurin algorithm.
- The resolution of the PARI/GP bug—caused by double rounding during Bernoulli number caching—was essential for achieving reliable results at 74,000 and 80,000-digit precision.
Experimental results
Research questions
- RQ1Can Stieltjes constants be computed reliably to 80,000 significant digits using a simple and efficient algorithm?
- RQ2What are the primary numerical obstacles in computing high-precision Stieltjes constants, and how can they be overcome?
- RQ3Does the PARI/GP zeta function implementation remain accurate at extreme precision levels, particularly for ζ(1 + jε)?
- RQ4What causes systematic errors in high-precision zeta function evaluations, and how can they be traced and corrected?
- RQ5Can the corrected zeta function data enable the derivation of new, more accurate asymptotic expansions for Stieltjes constants?
Key findings
- The algorithm successfully computed Stieltjes constants to 80,000 significant digits, demonstrating unprecedented precision for this class of constants.
- The method’s efficiency and simplicity stem from the use of a hypergeometric-like expansion and regularized zeta function evaluations at equally spaced real arguments.
- A critical bug in PARI/GP’s zeta function computation—caused by double rounding of Bernoulli numbers during caching—was identified and corrected, which had previously corrupted results at 74,000 and 80,000 digits.
- The error appeared only at ultra-high precision and was not detectable in lower-precision computations, highlighting the need for rigorous testing in extreme-precision arithmetic.
- The corrected PARI/GP implementation enabled the recovery of reliable zeta function data, which was essential for the algorithm’s success.
- The results validate the algorithm’s robustness and open the door to deriving new, more accurate asymptotic expansions for Stieltjes constants in future research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.