Skip to content

psi

specfun · scripts/specfun/psi.m

: y = psi (z)
: y = psi (k, z)

Digamma (k = 0) or polygamma of order k at z.

MATLAB R2026a: Y = psi(X) or Y = psi(K,X) with k a real nonnegative integer scalar. Prefers the builtin when the installed interpreter already accepts the two-argument form; otherwise evaluates polygamma in M (recurrence + Bernoulli asymptotic).