1.3 KiB
1.3 KiB
[sf.cmath.riemann.zeta]
29 Numerics library [numerics]
29.7 Mathematical functions for floating-point types [c.math]
29.7.6 Mathematical special functions [sf.cmath]
29.7.6.19 Riemann zeta function [sf.cmath.riemann.zeta]
floating-point-type riemann_zeta(floating-point-type x); float riemann_zetaf(float x); long double riemann_zetal(long double x);
Effects: These functions compute the Riemann zeta function of their respective argumentsx.
Returns: ζ(x), where ζ is given by Formula 29.39 andx is x.
ζ(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(29.39)