Γ(x)
-
lnΓ(x)
-
Γ(x) = ∫₀^∞ t^(x−1) e^(−t) dt
How to Use
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) via Lanczos approximation
- lnΓ(x) for large arguments
- Matches (n−1)! at positive integers
- Supports negative non-integer inputs
- Instant results
Use cases
- Evaluating statistical distributions with gamma factors
- Generalizing factorials to real arguments
- Physics calculations involving gamma functions
- Checking numerical library outputs