A M Turing Some Calculations of the Riemann Zeta-Function Calculator
Explore practical numerical ideas inspired by A. M. Turing’s classic work on the Riemann zeta-function. This calculator lets you estimate partial values of ζ(s), use the alternating eta acceleration, or compute the Riemann-von Mangoldt zero counting approximation N(T).
Calculator Inputs
Use partial sums for direct intuition, eta for better convergence in parts of the critical strip, or N(T) to estimate how many nontrivial zeros lie up to height T.
Visualization
For ζ(s) and η(s), the chart shows term magnitudes n^-σ. For N(T), the chart shows the zero counting approximation as height grows toward T.
Results
Ready to compute
Choose a method, set σ, t, and N, then click Calculate. The tool will return the real part, imaginary part, modulus, and useful notes about convergence or zero density.
- ζ(s) partial sum: best behaved when σ > 1.
- η(s) method: often more practical when 0 < σ.
- N(T): uses the classic asymptotic zero counting expression.
Expert guide to A. M. Turing and some calculations of the Riemann zeta-function
A. M. Turing is widely remembered for foundational work in computation, logic, and codebreaking, but he also made a deep and lasting contribution to analytic number theory. His paper Some Calculations of the Riemann Zeta-Function helped shape how mathematicians and computational scientists verify zeros of the zeta-function on the critical line. In practical terms, Turing developed a way to support large-scale zero computations by checking that no zeros had been skipped. That idea is now often referred to as Turing’s method, and it remains part of the standard numerical toolbox for work on the Riemann hypothesis and related computations.
The Riemann zeta-function is initially defined for complex numbers s = σ + it with real part σ > 1 by the Dirichlet series ζ(s) = Σ n^-s. Through analytic continuation, it extends to a much larger domain except for a simple pole at s = 1. The function has so-called trivial zeros at negative even integers and nontrivial zeros in the critical strip 0 < σ < 1. The Riemann hypothesis states that every nontrivial zero has real part exactly 1/2. Because this statement connects prime numbers, oscillatory sums, and the structure of complex analytic functions, numerical verification has always been central to the subject.
Turing’s contribution was not merely that he calculated zeros. It was that he introduced a rigorous way to audit a numerical zero search. When one scans for sign changes or phase changes along the critical line, there is always the danger that close zeros or numerical instability could cause a zero to be missed. Turing showed how to compare observed zeros against a theoretical counting function. If the observed count and the predicted count agree within an appropriate range, then one can be confident that the list is complete. This was a major advance because it converted a raw computation into a verifiable computation.
Why Turing’s method matters
To appreciate the importance of Turing’s method, it helps to separate two questions:
- Can we numerically locate zeros of ζ(1/2 + it)?
- Can we prove that we did not miss any zeros in a target interval?
The first question is computational. The second is mathematical quality control. Turing addressed the second question. In modern terms, his method combines explicit formulas, bounds on integrals involving the argument of the zeta-function, and the zero counting formula to certify completeness.
Key idea: zero-finding alone is not enough. A trustworthy computation of the zeta-function must also justify the count of zeros detected. Turing’s method is a certification framework, not just a numerical trick.
What this calculator does, and what it does not do
This page is an educational calculator inspired by the computational themes around Turing’s paper. It is not a full implementation of Turing’s rigorous certification method, which requires more delicate estimates and interval arguments than a lightweight browser tool should attempt. Instead, the calculator offers three useful views:
- Direct partial sum for ζ(s): this computes Σ n^-s up to N terms. It is naturally best when σ > 1, where the series converges absolutely.
- Alternating eta method: this computes η(s) = Σ (-1)^(n-1) n^-s, then uses ζ(s) = η(s) / (1 – 2^(1-s)). This is often more stable than the raw Dirichlet series in parts of the critical strip.
- Zero counting approximation: this uses the classical main term for the number of nontrivial zeros with imaginary part between 0 and T.
The result is a practical learning instrument. You can see how partial sums behave, how oscillation enters through the factor e^-it log n, and how the density of zeros increases with height. That density growth is exactly why Turing-style bookkeeping is so important: as T gets large, zeros appear more frequently, and numerical completeness becomes harder to guarantee without a principled check.
Mathematical background you should know
1. The Dirichlet series for ζ(s)
For σ > 1, the zeta-function is given by
ζ(s) = 1 + 2^-s + 3^-s + 4^-s + …
Writing s = σ + it, each term becomes n^-σ multiplied by an oscillatory factor involving cos(t log n) and sin(t log n). That means the terms shrink according to σ and rotate according to t. When σ is large, the terms fall rapidly. When σ is close to 1, convergence is slower. When σ is below 1, the direct series is no longer absolutely convergent, which is why the alternating eta formulation becomes valuable.
2. The alternating eta-function
The Dirichlet eta-function is defined by
η(s) = 1 – 2^-s + 3^-s – 4^-s + …
For real part σ > 0, this alternating series behaves better than the raw zeta series. One recovers the zeta-function from the identity
ζ(s) = η(s) / (1 – 2^(1-s)).
This does not replace the sophisticated methods used in high-precision zeta computations, but it does provide a much more realistic browser-level demonstration of analytic continuation than the naive Dirichlet series alone.
3. Counting zeros with the Riemann-von Mangoldt formula
The number N(T) of nontrivial zeros with imaginary part between 0 and T is approximated by
N(T) ≈ (T / 2π) log(T / 2π) – T / 2π + 7/8.
This is only the main asymptotic term, but it already captures the most important fact: the number of zeros grows roughly like T log T. In other words, zeros get denser as one climbs the critical strip. Turing’s method interacts with this counting law by comparing actual observed zeros to expected totals.
Selected data tables relevant to zeta computations
Table 1: Classical exact values at even positive integers
| Value | Exact form | Decimal value | Interpretation |
|---|---|---|---|
| ζ(2) | π² / 6 | 1.6449340668 | The Basel problem, solved by Euler |
| ζ(4) | π⁴ / 90 | 1.0823232337 | Rapidly convergent compared with ζ(2) |
| ζ(6) | π⁶ / 945 | 1.0173430619 | Shows zeta values approaching 1 as s increases |
| ζ(8) | π⁸ / 9450 | 1.0040773562 | Useful benchmark for testing numerical code |
These exact values are important in numerical work because they provide convenient test cases. Before trusting a zeta routine on complex arguments, one often validates it on inputs where the answer is known exactly or to very high precision. Browser tools like this one are especially easy to check at points such as s = 2 or s = 4.
Table 2: The first nontrivial zeros on the critical line
| Zero number | Imaginary part γ | Approximate spacing from previous zero | Notes |
|---|---|---|---|
| 1 | 14.134725 | Not applicable | First nontrivial zero |
| 2 | 21.022040 | 6.887315 | Still in a relatively low-density region |
| 3 | 25.010858 | 3.988818 | Spacing already varies noticeably |
| 4 | 30.424876 | 5.414018 | Classic benchmark ordinate |
| 5 | 32.935062 | 2.510186 | Demonstrates nonuniform local gap sizes |
| 6 | 37.586178 | 4.651116 | Often used in introductory examples |
| 7 | 40.918719 | 3.332541 | Zero density continues to rise with T |
| 8 | 43.327073 | 2.408354 | Useful for sanity checks in numerical searches |
These ordinates are standard numerical landmarks. They show a feature every computational number theorist learns quickly: even low on the critical line, zero spacing is irregular. This is one reason a rigorous counting check is needed. A naive search step can miss a narrow sign change, especially when function evaluation is noisy or sampling is too coarse.
How to interpret the calculator results
Real part, imaginary part, and modulus
When the calculator reports a complex value, it gives Re(ζ(s)), Im(ζ(s)), and |ζ(s)|. Together these show both the size and the phase behavior of the partial evaluation. If you set t equal to the ordinate of a known zero and choose σ = 1/2, a fully accurate high-precision method should produce a value close to zero. But a short browser-level partial sum usually will not. That is not a bug. It reflects the fact that serious zeta computation on the critical line needs more advanced formulas, cancellation control, and precision management than a simple partial series can provide.
Remainder estimates
For the direct Dirichlet series with σ > 1, a crude tail estimate comes from an integral and is roughly N^(1-σ) / (σ – 1). This is only a simple bound, but it gives you a feel for why convergence slows down as σ approaches 1 from the right. For the alternating eta series, the practical behavior is often better, though precise error control in the complex case still requires care.
Zero counting output
When you choose the zero counting option, the calculator evaluates the main asymptotic term for N(T). This tells you approximately how many nontrivial zeros lie below height T. It is not the full rigorous count, because there is an error term and there are subtleties in exact enumeration, but it is the right first approximation and exactly the kind of quantity that motivates Turing’s verification framework.
Best practices for educational zeta experiments
- Use σ = 2 or larger when testing the plain ζ(s) partial sum.
- Use the eta method when you want to experiment with 0 < σ ≤ 1.
- Increase N gradually and watch whether the result stabilizes.
- For large t, remember that oscillation becomes stronger, so numerical cancellation matters more.
- Use known exact values like ζ(2) or known zero ordinates as sanity checks.
Authoritative references for deeper study
If you want to go beyond this educational calculator and study the subject at research level, start with authoritative references. The NIST Digital Library of Mathematical Functions section on the zeta-function is an excellent technical reference. For computational zero data and historical numerical context, Andrew Odlyzko’s University of Minnesota page on the zeta-function is highly valuable: University of Minnesota zeta resources. For broader academic context on analytic number theory and the Riemann hypothesis, many university departments maintain lecture notes and seminar materials; one useful entry point is the MIT number theory notes on zeta-related topics.
Final perspective
Turing’s zeta-function work stands at a fascinating meeting point between theoretical mathematics and computational verification. It exemplifies a broader truth that still defines modern scientific computing: producing numbers is not enough, because one must also justify them. In zeta-function research, this means understanding convergence, asymptotics, argument variation, zero density, and error control. Turing helped turn that philosophy into a concrete method.
This calculator gives you an accessible entry into that world. By changing σ, t, and N, you can see how partial sums behave; by switching to the eta method, you can observe how analytic continuation ideas improve computation; and by plotting N(T), you can get an intuitive sense of why zero verification becomes increasingly subtle at greater heights. It is a small browser tool, but the ideas behind it lead directly to one of the deepest unsolved problems in mathematics.
Educational note: this page illustrates computational ideas inspired by Turing’s work. It is not a substitute for rigorous high-precision implementations used in current research.