Skip to content

gammaln

specfun · scripts/specfun/gammaln.m

: y = gammaln (x)

Logarithm of the gamma function for nonnegative real x.

MATLAB R2026a rejects any negative entry with MATLAB:gammaln:negativeVal. Nonnegative zeros map to +Inf.