Skip to main content

zeta

Function zeta 

Source
pub fn zeta(s: f64) -> f64
Expand description

The Riemann zeta function ζ(s) for real s ≠ 1 (+∞ at the pole).

For s ≥ 0 it is η(s) / (1 − 2^{1−s}) with Borwein’s alternating-series acceleration (relative error near 1e-15); for s < 0 the functional equation ζ(s) = 2^s π^{s−1} sin(πs/2) Γ(1−s) ζ(1−s) is used, with exact zeros at the negative even integers. Overflows to ±∞ below about s = −170.