Γ(x)
-
lnΓ(x)
-
Γ(x) = ∫₀^∞ t^(x−1) e^(−t) dt
Cara Pakai
Enter x and the gamma function Γ(x) and log-gamma lnΓ(x) are computed using the Lanczos approximation. For positive integers the result matches (n−1)!, and negative non-integer arguments are supported as well. The log form avoids overflow for large x, which is what statistical computations typically need when evaluating densities that contain gamma factors.
- High-precision Γ(x) (Lanczos approximation)
- lnΓ(x)
- Equals (n-1)! for integers
- Negative values supported
Kasus penggunaan
- Statistical distributions
- Generalized factorial
- Physics calculations
- Probability theory