pub fn polygamma(n: u32, x: f64) -> f64Expand description
The polygamma function ψ⁽ⁿ⁾(x), the n-th derivative of the digamma function (SciPy’s
polygamma). For n ≥ 1, ψ⁽ⁿ⁾(x) = (−1)ⁿ⁺¹ n! ζ(n + 1, x) with the Hurwitz zeta function;
negative non-integer x is first shifted to positive values by
ψ⁽ⁿ⁾(x) = ψ⁽ⁿ⁾(x + 1) + (−1)ⁿ⁺¹ n! / xⁿ⁺¹. NaN at the poles x = 0, −1, −2, ….