Skip to content

Zeta ​

The Riemann zeta function ζ(s)=∑n=1∞n−s\zeta(s) = \sum_{n=1}^{\infty} n^{-s} for Re⁡(s)>1\operatorname{Re}(s) > 1, continued analytically elsewhere.

✓ checked against that system · ! checked, with disagreements (hover a chip)WikidataQ187235Encyclopedia of MathematicsZeta-function#Riemann.27s_zeta-functionBritannicatopic/Riemann-zeta-functionFungrimRiemannZeta✓Fungrim entryWolfram LanguageZeta!
Zeta(s)the Riemann zeta function ζ(s)\zeta(s).
WikipediaRiemann zeta functionMathWorldRiemannZetaFunctionDLMF25.2.E1SageMathzeta(s)!SymPyzeta(s)mpmathzeta(s)Juliaenumeratio_ball(zeta, s)
Zeta(s, a)the two-argument generalized (Hurwitz-type) zeta ζ(s,a)\zeta(s, a); see HurwitzZeta for the difference.
WikipediaHurwitz zeta functionMathWorldHurwitzZetaFunctionDLMF25.11.E1FungrimHurwitzZetaSageMathhurwitz_zeta(s, a)!SymPyzeta(s, a)mpmathzeta(s, a)Juliaenumeratio_ball(zeta, s, a)
Typed signatures
TypePackageApplies
(complex | infinity, (complex | infinity)?) -> numberanalyticreplaces compute-enginealways
(complex | infinity, (complex | infinity)?) -> numbercompute-enginealways

Domain: Special functions

Details

The Riemann zeta function ζ(s)=∑n=1∞n−s\zeta(s) = \sum_{n=1}^{\infty} n^{-s}, for Re⁡(s)>1\operatorname{Re}(s) > 1, extends by analytic continuation to a meromorphic function on all of C\mathbb{C} with a single simple pole at s=1s = 1. Over the primes it factors as the Euler product ζ(s)=∏p(1−p−s)−1\zeta(s) = \prod_p (1 - p^{-s})^{-1} (DLMF 25.2.11), which is where its role in the distribution of primes comes from. It is HurwitzZeta's a=1a = 1 slice, ζ(s)=ζ(s,1)\zeta(s) = \zeta(s, 1), and PolyLog's z=1z = 1 edge, ζ(s)=Li⁡s(1)\zeta(s) = \operatorname{Li}_s(1).

  • Even positive integers have closed forms in powers of π\pi: ζ(2)=π2/6\zeta(2) = \pi^2/6 (the Basel problem), ζ(4)=π4/90\zeta(4) = \pi^4/90, and so on.
  • Trivial zeros at the negative even integers: ζ(−2n)=0\zeta(-2n) = 0.
  • Special values at nonpositive integers relate to the Bernoulli numbers: ζ(−n)=−Bn+1/(n+1)\zeta(-n) = -B_{n+1}/(n+1). See BernoulliB.
  • Pole at s=1s=1: ζ(1)=ComplexInfinity\zeta(1) = \text{ComplexInfinity}, reflecting the divergence of the harmonic series.
  • Odd integers ≥3\geq 3 (Apéry's constant ζ(3)\zeta(3), and beyond) have no known closed form and stay numeric-only.
  • compute-engine reduces Zeta to an exact closed form at these special integer points -- even under plain evaluation, and even threaded over a list -- but leaves other reals, like ζ(3)\zeta(3), symbolic pending N().
  • The two-argument form ζ(s,a)=∑n≥0(n+a)−s\zeta(s, a) = \sum_{n\geq 0} (n+a)^{-s} is provided by @enumeratio/analytic (compute-engine's built-in Zeta is single-argument). It equals HurwitzZeta for Re⁡(a)>0\operatorname{Re}(a) > 0 but follows Wolfram's generalized-zeta convention for a≤0a \leq 0: the terms off the positive axis use ((n+a)2)−s/2((n+a)^2)^{-s/2} and the n+a=0n+a=0 term is dropped, so ζ(s,a)\zeta(s, a) stays finite at a=0,−1,−2,…a = 0, -1, -2, \dots -- in particular ζ(s,0)=ζ(s)\zeta(s, 0) = \zeta(s) -- where HurwitzZeta has poles.
  • Certified digits: at an exact real s≠1s \ne 1 (an integer, a rational or a decimal), N(ζ(s),d)\mathrm{N}(\zeta(s), d) is proven, not just agreed on, and so is N(ζ(s,a),d)\mathrm{N}(\zeta(s, a), d) for an exact a>0a > 0. See HurwitzZeta for the bound, and N.

Plot

ComplexPlot
real slice

Examples

25 more kept as data, checked against the oracles
Basic #
live ↗
Inζ(2)ζ(2)Outπ26\frac{π^2}{6}

Known value · DLMF 25.6.1

live ↗
Inζ(4)ζ(4)Outπ490\frac{π^4}{90}

Known value · DLMF 25.6.1

live ↗
Inζ(6)ζ(6)Outπ6945\frac{π^6}{945}

Known value · DLMF 25.6.1

Threads over a list, reducing every element to its exact closed form

live ↗
Inζ([−1,−2,−3])ζ(\bigl\lbrack-1, -2, -3\bigr\rbrack)Out[−112,0,1120]\bigl\lbrack-\frac{1}{12}, 0, \frac{1}{120}\bigr\rbrack

Apéry's constant ζ(3)\zeta(3), numerically

live ↗
InN(ζ(3))N(ζ(3))Out1.202 056 903 159 594 285 41.202\,056\,903\,159\,594\,285\,4

A machine-precision argument

live ↗
Inζ(1.5)ζ(1.5)Out2.612 375 348 685 488 343 352.612\,375\,348\,685\,488\,343\,35

ζ(8)=π8/9450\zeta(8) = \pi^8/9450

live ↗
Inζ(8)ζ(8)Outπ89 450\frac{π^8}{9\,450}

ζ(−5)=−B6/6=−1/252\zeta(-5) = -B_6/6 = -1/252

live ↗
Inζ(−5)ζ(-5)Out−1252-\frac{1}{252}

Zeta(s, -n) = ζ(s) + Σ j^(-s): the terms left of the dropped n+a=0 slot count as |n+a|^(-s).

live ↗
Inζ(2,−1)ζ(2, -1)Out1+π261+\frac{π^2}{6}

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

live ↗
Inζ(3,−1)ζ(3, -1)Out1+ζ(3)1+ζ(3)

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

live ↗
Inζ(3,−2)ζ(3, -2)Out98+ζ(3)\frac{9}{8}+ζ(3)

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

live ↗
Inζ(4,−3)ζ(4, -3)Out1 3931 296+π490\frac{1\,393}{1\,296}+\frac{π^4}{90}

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

live ↗
InN(ζ(3,−3))N(ζ(3, -3))Out2.364 093 940 196 631 322 442.364\,093\,940\,196\,631\,322\,44

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

The convention holds left of the strip too: ζ(−1, −1) = ζ(−1) + 1, not the Bernoulli-polynomial −13/12 DLMF 25.11.14 gives where the series is meant.

live ↗
Inζ(−1,−1)ζ(-1, -1)Out1112\frac{11}{12}

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

At n = 1 any exact ss gives 1+ζ(s)1 + \zeta(s); a longer sum stays symbolic unless ζ(s)\zeta(s) has a closed form.

live ↗
Inζ(52,−1)ζ(\frac{5}{2}, -1)Out1+ζ(52)1+ζ(\frac{5}{2})

Known value · Wolfram Zeta[s, a], checked with wolframscript: ζ(s) + Σ_{j=1}^{n} j^(-s) (the n+a=0 term dropped); DLMF 25.11.1 defines the sum only for a ≠ 0, −1, −2, …

live ↗
InFullSimplify(Normal⁡(Series⁡(ζ(x),x,0,2)))\mathrm{FullSimplify}(\operatorname{Normal}(\operatorname{Series}(ζ(x), x, 0, 2)))Out12Z′′(0)x2+xZ′(0)−12\frac{1}{2}\Zeta^{\prime\prime}(0)x^2+x\Zeta^{\prime}(0)-\frac{1}{2}
live ↗
InNormal⁡(Series⁡(ζ(x),x,∞,6))\operatorname{Normal}(\operatorname{Series}(ζ(x), x, ∞, 6))OutSeries⁡(ζ(x),x,∞,6)\operatorname{Series}(ζ(x), x, ∞, 6)
live ↗
InNormal⁡(Series⁡(ζ(x),x,1,2))\operatorname{Normal}(\operatorname{Series}(ζ(x), x, 1, 2))Out12StieltjesGamma(2)(x−1)2−(x−1)StieltjesGamma(1)+1x−1+γ\frac{1}{2}\mathrm{StieltjesGamma}(2)(x-1)^2-(x-1)\mathrm{StieltjesGamma}(1)+\frac{1}{x-1}+γ
Scope #

On the critical line, ζ(1/2+14i)=0.02224…−0.10326…i\zeta(1/2 + 14i) = 0.02224\ldots - 0.10326\ldots i — complex ss, from @enumeratio/analytic (compute-engine's Zeta evaluates real ss only). Computed in arbitrary precision and rounded once, so each part is the nearest double in every JavaScript engine

live ↗
InN(ζ(0.5+14i))N(ζ(0.5+14i))Out0.022 241 142 609 993 59−0.103 258 123 266 450 06i0.022\,241\,142\,609\,993\,59-0.103\,258\,123\,266\,450\,06i

Two-argument ζ(s,a)\zeta(s, a) (via @enumeratio/analytic): ζ(s,1)=ζ(s)\zeta(s, 1) = \zeta(s) recovers the ordinary case, so ζ(2,1)=π2/6\zeta(2, 1) = \pi^2/6

live ↗
Inζ(2,1)ζ(2, 1)Outπ26\frac{π^2}{6}

ζ(2,2)=ζ(2)−1=π2/6−1\zeta(2, 2) = \zeta(2) - 1 = \pi^2/6 - 1

live ↗
Inζ(2,2)ζ(2, 2)Outπ26−1\frac{π^2}{6}-1

ζ(s,0)=ζ(s)\zeta(s, 0) = \zeta(s): the n+a=0n+a=0 term is dropped, so unlike HurwitzZeta there is no pole at a=0a = 0

live ↗
Inζ(2,0)ζ(2, 0)Outπ26\frac{π^2}{6}

Arbitrary real arguments

live ↗
Inζ(5.211 111 111 111 111)ζ(5.211\,111\,111\,111\,111)Out1.031 391 796 934 384 998 391.031\,391\,796\,934\,384\,998\,39

Left of the critical strip, via the functional equation

live ↗
Inζ(−4.5)ζ(-4.5)Out−0.003 091 669 247 215 833 844 82-0.003\,091\,669\,247\,215\,833\,844\,82

Complex ss under N()

live ↗
InN(ζ(2−5i))N(ζ(2-5i))Out0.850 962 943 624 262 8−0.098 996 946 134 831 25i0.850\,962\,943\,624\,262\,8-0.098\,996\,946\,134\,831\,25i

ζ(∞)=1\zeta(\infty) = 1: only the n=1n = 1 term survives

live ↗
Inζ(∞)ζ(∞)Out11

Two arguments at a nonpositive integer ss: ζ(−1,5)=−B2(5)/2=−121/12\zeta(-1, 5) = -B_2(5)/2 = -121/12

live ↗
Inζ(−1,5)ζ(-1, 5)Out−12112-\frac{121}{12}

Two arguments, inexact

live ↗
Inζ(−1.5,5)ζ(-1.5, 5)Out−17.050 064 749 342 655 014 129 5-17.050\,064\,749\,342\,655\,014\,129\,5

Two complex arguments under N(), to ten digits

live ↗
InN(ζ(−1.5+i,2.5−i),10)N(ζ(-1.5+i, 2.5-i), 10)Out0.018 486 809 19+1.675 533 784i0.018\,486\,809\,19+1.675\,533\,784i

...and with inexact complex arguments, without N(), as the real case does

live ↗
Inζ(−1.5+i,2.5−i)ζ(-1.5+i, 2.5-i)Out0.018 486 809 193 810 65+1.675 533 784 301 766i0.018\,486\,809\,193\,810\,65+1.675\,533\,784\,301\,766i

ζ(20,1/2)=(220−1)ζ(20)\zeta(20, 1/2) = (2^{20} - 1)\zeta(20), an exact multiple of π20\pi^{20}

live ↗
Inζ(20,12)ζ(20, \frac{1}{2})Out221 930 581π201 856 156 927 625\frac{221\,930\,581π^{20}}{1\,856\,156\,927\,625}

ζ(2,1/2)=3ζ(2)=π2/2\zeta(2, 1/2) = 3\zeta(2) = \pi^2/2

live ↗
Inζ(2,12)ζ(2, \frac{1}{2})Outπ22\frac{π^2}{2}

Interval arithmetic: ζ\zeta is decreasing on (1,∞)(1, \infty)

live ↗
Inζ(Interval(1.1,1.2))ζ(\mathrm{Interval}(1.1, 1.2))OutInterval(5.591 582 441 177 75,10.584 448 464 950 812)\mathrm{Interval}(5.591\,582\,441\,177\,75, 10.584\,448\,464\,950\,812)

Uncertainty in aa, propagated with ∂aζ(s,a)=−s ζ(s+1,a)\partial_a\zeta(s, a) = -s\,\zeta(s+1, a)

live ↗
Inζ(12,Around(0.5,0.01))ζ(\frac{1}{2}, \mathrm{Around}(0.5, 0.01))OutAround(−0.604 898 643 421 630 4,0.023 882 689 737 774 167)\mathrm{Around}(-0.604\,898\,643\,421\,630\,4, 0.023\,882\,689\,737\,774\,167)

To 40 significant digits, every one correctly rounded

live ↗
InN(ζ(3),40)N(ζ(3), 40)Out1.202 056 903 159 594 285 399 738 161 511 449 990 7651.202\,056\,903\,159\,594\,285\,399\,738\,161\,511\,449\,990\,765

Fifty digits just right of the pole at s=1s = 1

live ↗
InN(ζ(54),50)N(ζ(\frac{5}{4}), 50)Out4.595 111 825 842 943 380 685 378 039 694 625 652 281 029 780 604 84.595\,111\,825\,842\,943\,380\,685\,378\,039\,694\,625\,652\,281\,029\,780\,604\,8

ζ(3,2)=ζ(3)−1\zeta(3,2) = \zeta(3) - 1, to 50 digits

live ↗
InN(ζ(3,2),50)N(ζ(3, 2), 50)Out0.202 056 903 159 594 285 399 738 161 511 449 990 764 986 292 340 50.202\,056\,903\,159\,594\,285\,399\,738\,161\,511\,449\,990\,764\,986\,292\,340\,5

Threads over a matrix, with closed forms at half-integer shifts

live ↗
Inζ(2,[[12,0],[0,32]])ζ(2, \bigl\lbrack\bigl\lbrack\frac{1}{2}, 0\bigr\rbrack, \bigl\lbrack0, \frac{3}{2}\bigr\rbrack\bigr\rbrack)Out[[π22,π26],[π26,ζ(2,32)]]\bigl\lbrack\bigl\lbrack\frac{π^2}{2}, \frac{π^2}{6}\bigr\rbrack, \bigl\lbrack\frac{π^2}{6}, ζ(2, \frac{3}{2})\bigr\rbrack\bigr\rbrack

ζ(4,5)=π490−∑k=14k−4\zeta(4,5) = \frac{\pi^4}{90} - \sum_{k=1}^{4} k^{-4}

live ↗
Inζ(4,5)ζ(4, 5)Outπ490−22 36920 736\frac{π^4}{90}-\frac{22\,369}{20\,736}

A pole at 1, closed forms at 2 and 4, and ζ(3)\zeta(3) stays symbolic

live ↗
Inζ([1,2,3,4])ζ(\bigl\lbrack1, 2, 3, 4\bigr\rbrack)Out[∞~,π26,ζ(3),π490]\bigl\lbrack\tilde∞, \frac{π^2}{6}, ζ(3), \frac{π^4}{90}\bigr\rbrack

MatrixFunction on a diagonal matrix matches entrywise Hurwitz values

live ↗
InMatrixFunction(_1⁡↦ζ(2,_1⁡),[[12,0],[0,32]])\mathrm{MatrixFunction}(\operatorname{\_1}↦ζ(2, \operatorname{\_1}), \bigl\lbrack\bigl\lbrack\frac{1}{2}, 0\bigr\rbrack, \bigl\lbrack0, \frac{3}{2}\bigr\rbrack\bigr\rbrack)Out[[π22,0],[0,ζ(2,32)]]\bigl\lbrack\bigl\lbrack\frac{π^2}{2}, 0\bigr\rbrack, \bigl\lbrack0, ζ(2, \frac{3}{2})\bigr\rbrack\bigr\rbrack

ζ(12+14i)\zeta(\tfrac12+14i), both parts correctly rounded: the bignum kernel rather than a double one, which was off in the 14th digit

live ↗
InN(ζ(0.5+14i))N(ζ(0.5+14i))Out0.022 241 142 609 993 59−0.103 258 123 266 450 06i0.022\,241\,142\,609\,993\,59-0.103\,258\,123\,266\,450\,06i
Applications #

The probability that two random positive integers are coprime is 1/ζ(2)=6/π21/\zeta(2) = 6/\pi^2

live ↗
In1ζ(2)=6π2\frac{1}{ζ(2)}=\frac{6}{π^2}OutTrue\mathrm{True}

Apéry's constant ζ(3)\zeta(3) to 40 digits, proven: both ends of the enclosure round to these digits

live ↗
InN(ζ(3),40)N(ζ(3), 40)Out1.202 056 903 159 594 285 399 738 161 511 449 990 7651.202\,056\,903\,159\,594\,285\,399\,738\,161\,511\,449\,990\,765
Properties #

ζ(0)=−1/2\zeta(0) = -1/2

live ↗
Inζ(0)ζ(0)Out−12-\frac{1}{2}

Known value · DLMF 25.6.1

Trivial zero: ζ(−2n)=0\zeta(-2n) = 0 for positive integer n

live ↗
Inζ(−2)ζ(-2)Out00

ζ(−3)=−B4/4=1/120\zeta(-3) = -B_4/4 = 1/120, via the Bernoulli-number relation. See BernoulliB

live ↗
Inζ(−3)ζ(-3)Out1120\frac{1}{120}

Pole at s=1s=1: the harmonic series ∑1/n\sum 1/n diverges

live ↗
Inζ(1)ζ(1)Out∞~\tilde∞

ζ(s,1)=ζ(s)\zeta(s, 1) = \zeta(s) for symbolic ss

live ↗
Inζ(s,1)ζ(s, 1)Outζ(s)ζ(s)

ζ(0)=−12\zeta(0) = -\frac12, the regularised value

live ↗
Inζ(0,1)ζ(0, 1)Out−12-\frac{1}{2}

Known value · Wolfram MathematicalFunctionData, Zeta

The famous ζ(−1)=−112\zeta(-1) = -\frac1{12}

live ↗
Inζ(−1,1)ζ(-1, 1)Out−112-\frac{1}{12}

Known value · Wolfram MathematicalFunctionData, Zeta

ζ(0,a)=12−a\zeta(0, a) = \frac12 - a, here 14\frac14 at a=14a = \frac14

live ↗
Inζ(0,14)ζ(0, \frac{1}{4})Out14\frac{1}{4}

Known value · Wolfram MathematicalFunctionData, Zeta

A negative-order value via Bernoulli polynomials: 196\frac1{96}

live ↗
Inζ(−1,14)ζ(-1, \frac{1}{4})Out196\frac{1}{96}

Known value · Wolfram MathematicalFunctionData, Zeta

ζ(2,3)=π26−1−14\zeta(2,3) = \frac{\pi^2}{6} - 1 - \frac14

live ↗
Inζ(2,3)ζ(2, 3)Outπ26−54\frac{π^2}{6}-\frac{5}{4}

Known value · Wolfram MathematicalFunctionData, Zeta

Subtract the first three terms of the Basel series

live ↗
Inζ(2,4)ζ(2, 4)Outπ26−4936\frac{π^2}{6}-\frac{49}{36}

Known value · Wolfram MathematicalFunctionData, Zeta

Remove 1+14+19+1161 + \frac14 + \frac19 + \frac1{16} from π2/6\pi^2/6

live ↗
Inζ(2,5)ζ(2, 5)Outπ26−205144\frac{π^2}{6}-\frac{205}{144}

Known value · Wolfram MathematicalFunctionData, Zeta

The same pattern with denominator 3600

live ↗
Inζ(2,6)ζ(2, 6)Outπ26−5 2693 600\frac{π^2}{6}-\frac{5\,269}{3\,600}

Known value · Wolfram MathematicalFunctionData, Zeta

A shift of 7 changes only the rational part

live ↗
Inζ(2,7)ζ(2, 7)Outπ26−5 3693 600\frac{π^2}{6}-\frac{5\,369}{3\,600}

Known value · Wolfram MathematicalFunctionData, Zeta

Rational offset grows with the shift

live ↗
Inζ(2,8)ζ(2, 8)Outπ26−266 681176 400\frac{π^2}{6}-\frac{266\,681}{176\,400}

Known value · Wolfram MathematicalFunctionData, Zeta

Another shift of the Basel tail

live ↗
Inζ(2,9)ζ(2, 9)Outπ26−1 077 749705 600\frac{π^2}{6}-\frac{1\,077\,749}{705\,600}

Known value · Wolfram MathematicalFunctionData, Zeta

Rational part of the tail from 10

live ↗
Inζ(2,10)ζ(2, 10)Outπ26−9 778 1416 350 400\frac{π^2}{6}-\frac{9\,778\,141}{6\,350\,400}

Known value · Wolfram MathematicalFunctionData, Zeta

At a=1a = 1 this is the plain ζ(4)=π4/90\zeta(4)=\pi^4/90

live ↗
Inζ(4,1)ζ(4, 1)Outπ490\frac{π^4}{90}

Known value · Wolfram MathematicalFunctionData, Zeta

The tail from 2 subtracts exactly 1

live ↗
Inζ(4,2)ζ(4, 2)Outπ490−1\frac{π^4}{90}-1

Known value · Wolfram MathematicalFunctionData, Zeta

live ↗
In∑k=11ζ(2k)ζ(4−2k)\sum_{k=1}^1ζ(2k)ζ(4-2k)Outπ436\frac{π^4}{36}

Known value · Wolfram MathematicalFunctionData, Zeta:Riemann, FunctionalEquations

live ↗
In∑k=12ζ(2k)ζ(6−2k)\sum_{k=1}^2ζ(2k)ζ(6-2k)Outπ6270\frac{π^6}{270}

Known value · Wolfram MathematicalFunctionData, Zeta:Riemann, FunctionalEquations

ζ(0,a)=12−a\zeta(0, a) = \frac12 - a holds at a=0a = 0 too: at s=0s = 0 the n+a=0n+a=0 term is 00=10^0 = 1, kept

live ↗
Inζ(0,0)ζ(0, 0)Out12\frac{1}{2}
Possible issues #

Odd integers ≥3\geq 3 have no known closed form (Apéry's constant, ζ(3)\zeta(3)), so compute-engine leaves them symbolic under plain evaluation -- use N() for a decimal

live ↗
Inζ(3)ζ(3)Outζ(3)ζ(3)

ζ(3,−1/2)=8+ζ(3,1/2)\zeta(3, -1/2) = 8 + \zeta(3, 1/2) under Wolfram's generalized convention for a≤0a \leq 0 — differs from HurwitzZeta there

live ↗
InN(ζ(3,−12))N(ζ(3, -\frac{1}{2}))Out16.414 398 322 117 159 997 816.414\,398\,322\,117\,159\,997\,8

ζ(−1,−2)=35/12\zeta(-1, -2) = 35/12 exactly, but at a negative aa this stays symbolic without N()

live ↗
InN(ζ(−1,−2))N(ζ(-1, -2))Out2.916 666 666 666 666 666 672.916\,666\,666\,666\,666\,666\,67
Neat examples #

The notorious "sum of all positive integers" result from zeta-function regularization, ζ(−1)=−1/12\zeta(-1) = -1/12

live ↗
Inζ(−1)ζ(-1)Out−112-\frac{1}{12}
About
Examples95
Checked againstWolfram Language 86 agree6 differ1 unevaluatedSageMath 60 agree12 differ7 unevaluated13 errorSymPy 61 agree15 differ17 unevaluated1 errormpmath 53 agree12 differ3 unevaluated17 errorJulia 52 agree11 differ3 unevaluated19 error
CrosswalkWikipedia ×2MathWorld ×2WikidataEncyclopedia of MathematicsBritannicaDLMF ×2Fungrim ×2Fungrim entry ×48Wolfram LanguageSageMath ×2SymPy ×2mpmath ×2Julia ×2

Implementation

primitive · numericirreducibly numeric — it evaluates rather than rewrites

nativeenginetypescriptpackages/ce-patches/src/compute-engine/numerics/hurwitz-zeta.ts

Riemann ζ is the m = 1 case of the Hurwitz implementation.

compiledgpuwgslpackages/symbols/analysis/analytic/src/shader.ts:zetaWGSL

Produces a colour per pixel — complex ζ, domain-coloured.

compute-engine's WGSLTarget has no lowering for Zeta; ours compiles Zeta(s) as zetaGen(s, 1) on the real-scalar path, and the complex-portrait fragment shader (complex-plot.ts) takes it as clogPolar(hurwitz(s, vec2f(1,0))).

componentbrowser<notatio-complex-plot>packages/components/src/notatio-complex-plot.ts

Produces a rendered phase portrait.

For a plotted ζ the head's meaning bottoms out here: the element IS the answer, and there is no expression it reduces to.

mappedwolframpackages/oracle/src/mappings.ts

Riemann ζ at one argument, in every system.

mappedsympypackages/oracle/src/mappings.ts

Riemann ζ at one argument, in every system.

mappedmpmathpackages/oracle/src/mappings.ts

Riemann ζ at one argument, in every system.

mappedsagepackages/oracle/src/mappings.ts

Riemann ζ at one argument, in every system.

mappedwolframpackages/oracle/src/mappings.ts

Two arguments is Hurwitz. Wolfram's Zeta[s, a] drops the n+a=0 term like ours does (its HurwitzZeta[s, 0] diverges); Sage spells it hurwitz_zeta; SymPy and mpmath overload zeta.

mappedsympypackages/oracle/src/mappings.ts

Two arguments is Hurwitz. Wolfram's Zeta[s, a] drops the n+a=0 term like ours does (its HurwitzZeta[s, 0] diverges); Sage spells it hurwitz_zeta; SymPy and mpmath overload zeta.

mappedmpmathpackages/oracle/src/mappings.ts

Two arguments is Hurwitz. Wolfram's Zeta[s, a] drops the n+a=0 term like ours does (its HurwitzZeta[s, 0] diverges); Sage spells it hurwitz_zeta; SymPy and mpmath overload zeta.

mappedsagepackages/oracle/src/mappings.ts

Two arguments is Hurwitz. Wolfram's Zeta[s, a] drops the n+a=0 term like ours does (its HurwitzZeta[s, 0] diverges); Sage spells it hurwitz_zeta; SymPy and mpmath overload zeta.

mappedjuliapackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts

See also: HurwitzZeta, BernoulliB, Gamma, Digamma, RiemannSiegelZ, RiemannZetaZero