gammaln
Natural logarithm of the gamma function, ln(|Γ(x)|).
Syntax
Section titled “Syntax”v = gammaln(x)Description
Section titled “Description”Returns log(abs(gamma(x))). Useful when computing factorials of large numbers — gamma(x) overflows for x > ~171, but gammaln(x) remains finite.
Example
Section titled “Example”gammaln(100) % ≈ 359.13See also
Section titled “See also”gamma— Gamma function Γ(x).