double riemann_zeta(double x); float riemann_zetaf(float x); long double riemann_zetal(long double x);
Effects: These functions compute the Riemann zeta function of their respective arguments x.
Returns:
ζ(x)=⎧⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪⎨⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪⎩∞∑k=1k−x,for x>111−21−x∞∑k=1(−1)k−1k−x,for 0≤x≤12xπx−1sin(πx2)Γ(1−x)ζ(1−x),for x<0
where x is x.