Skip to content

zeta

specfun · scripts/specfun/zeta.m

: y = zeta (s)
: y = zeta (s, a)

Riemann and Hurwitz zeta functions.

zeta (S) is the Riemann zeta function. zeta (S, A) is the Hurwitz zeta function; the Riemann case is A = 1.

Inputs must be real floating-point arrays of common size (or scalars). The result is single if any input is single. At the pole S = 1 the value is Inf. When a is 0 or a negative integer the result is NaN.

Numeric behaviour matches the MATLAB R2026a hurwitzZeta / zeta examples (Symbolic Math docs), exposed as the two-argument form required by Nexus math-005.