gamma
Gamma function Γ(x).
Syntax
Section titled “Syntax”v = gamma(x)Description
Section titled “Description”Returns the gamma function Γ(x) — the analytic extension of the factorial: Γ(n+1) = n! for non-negative integer n. Defined for all real x except non-positive integers (poles).
Examples
Section titled “Examples”gamma(5) % 24 (= 4!)gamma(0.5) % 1.7725 (= √π)See also
Section titled “See also”gammaln— Natural logarithm of the gamma function,ln(|Γ(x)|).gammainc— Lower incomplete gamma function (regularized).gammaincinv— Inverse of the regularized incomplete gamma function.polygamma— Polygamma function ψ^(k)(x).fact— Factorial.