DGS Studio

Riemann Zeta

Riemann Zeta

Evaluate ζ(s), plot the real zeta function, or trace ζ(σ+it).

The primary input zeta(2) is the Basel value π²/6. The series 1 + 1/4 + 1/9 + … is that same number. zeta(3) is Apéry's constant, which is not a known rational multiple of a simple power of π.

y = zeta(x) plots the real function and breaks at the pole x = 1. zeta_complex() plots ζ(1/2 + it) as a path in the complex plane, using the real part as x and the imaginary part as y. Scalar inputs stay in the result panel. Plot inputs use Generate Graph.

Equation

zeta(2)

The zeta function in three views

The Riemann zeta function extends the series Σ 1/nˢ beyond the values of s where that series converges. At s = 2 the series is the Basel problem and the sum is π²/6. At s = 1 the function has a pole, so a real graph must break there instead of crossing it.

zeta(2) and the infinite sum are scalar results. y = zeta(x) is the real graph on an interval that skips x = 1. zeta_complex() plots the path of zeta along a vertical line in the complex plane, by default the critical line σ = 1/2. Those are different views of one function.

Reading the input

Other versions of this example

These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.

zeta(2)

ζ(2) = π²/6.

zeta(2)

zeta(3)

Apéry's constant ζ(3).

zeta(3)

Infinite series

The Basel series equals ζ(2).

sum(1/n^2, n, 1, infinity)

y = zeta(x)

Real zeta function with a vertical asymptote at x = 1.

y = zeta(x)

Complex path

Path of ζ(0.5+it) in the complex plane.

zeta_complex()

Try a change

Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples