Previous topic

scipy.special.spence

Next topic

scipy.special.zetac

scipy.special.zeta

scipy.special.zeta(x, q=None, out=None)[source]

Riemann or Hurwitz zeta function.

Parameters:

x : array_like of float

Input data, must be real

q : array_like of float, optional

Input data, must be real. Defaults to Riemann zeta.

out : ndarray, optional

Output array for the computed values.

See also

zetac

Notes

The two-argument version is the Hurwitz zeta function:

\[\zeta(x, q) = \sum_{k=0}^{\infty} \frac{1}{(k + q)^x},\]

Riemann zeta function corresponds to q = 1.