Skip to content

Computer implementation of the Riemann Siegel formula in Julia alongside various plotting and numerical programs related to the Riemann zeta function.

License

Notifications You must be signed in to change notification settings

matthewshawnkehoe/Riemann-Zeta-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Riemann Siegel and Assorted Zeta Functions

The German mathematician Bernhard Riemann published his work on the investigation of prime numbers in 1859. This eight-page paper, titled "On the Number of Primes Less Than a Given Magnitude", expanded on the work of Euler, Gauss, and Dirichlet and made numerous contributions to the study of both complex and analytic function theory. One of the major claims of this work was a conjecture about the location of zeros of the Riemann zeta function. To put it simply, Riemann hypothesized that all non-trivial zeros of the Riemann zeta function must have real part equal to $1/2$ and lie inside the critical strip $0 < s < 1$. This conjecure is now known as the Riemann Hypothesis (RH). Numerous mathematicians and computer scientists have created numerical algorithms to verify the Riemann Hypothesis up to a specific height $T$. The three most famous of these numerical algorithms are:

  1. Euler-Maclaurin Summation Formula
  2. Riemann–Siegel Formula
  3. Odlyzko–Schonhage Algorithm

This repository contains a Julia implementation of the Riemann–Siegel formula. The code was written by Matthew Kehoe ([email protected]) and is partially based off the work (written in C) by Glen Pugh and Ken Takusagawa. Future commits of this repository may contain a working implementation of the Odlyzko–Schonhage algorithm in Julia and various enhancements to the root-finding and plotting programs.

Installation

Download the Julia code in the src directory. The individual programs are

  1. BernoulliNumbers.jl: This program applies the Akiyama-Tanigawa algorithm to display integer values of the Riemann zeta function.
  2. PlotZetaOffCriticalLine.jl: Calculates real values of the Riemann zeta function off the critical line and plots them to the screen.
  3. PlotZetaOnCriticalLine.jl: Uses the Riemann-Siegel formula to plot the Riemann-Siegel $Z$ function, $(t,Z(t))$, at specified time intervals.
  4. RiemannSiegel.jl: Implementation of the Riemann-Siegel formula to calculate non-trivial zeros of the Riemann zeta function.
  5. TuringTest.jl: Applies Turing's method to bound $S(g_n)$ in the expression $(-1)^n Z(g_n + h_n) > 0$ (which can be used to verify the RH up to a specific height $T$).
  6. rootCount.jl: Verifies the RH up to a final Gram point using the Riemann-Siegel formula.
  7. zetaFunctions.jl: A library of functions used in all the other programs.

Plotting

Example 1: Plot of $\zeta(1/2+it)$ on the critical line.

image

Example 2: Real and Imaginary values of the Riemann-Siegel $Z$ function.

image

Example 3: Real values of the Riemann Zeta function.

image

References

Interested readers can review the following material:

Future Work

  1. Implement the Odlyzko–Schonhage Algorithm in Julia.
  2. Apply more remainder terms in the calculation of the Riemann-Siegel formula (Ken computed a lot more than four).
  3. Implement 3D plots of the Riemann zeta function with real and complex values.

Questions

Email Matthew Kehoe ([email protected]) about questions related to this work.

About

Computer implementation of the Riemann Siegel formula in Julia alongside various plotting and numerical programs related to the Riemann zeta function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages