polygamma
Polygamma function ψ^(k)(x).
Syntax
Section titled “Syntax”v = polygamma(k, x)Description
Section titled “Description”Returns the k-th derivative of the digamma function ψ(x) = d/dx ln(Γ(x)). With k = 0, returns ψ(x) itself; k = 1 gives the trigamma function, etc.
Example
Section titled “Example”polygamma(0, 1) % ≈ -0.5772 (Euler-Mascheroni constant)