Calculate Log Gamma Function
Online calculator and formulas for computing the logarithmic Gamma function ln Γ(x)
Log Gamma Function Calculator
Logarithmic Gamma Function
The ln Γ(x) or Log-Gamma function is the natural logarithm of the Gamma function and is numerically more stable for large arguments.
Log Gamma Function Curve
Mouse pointer on the graph shows the values.
The Log-Gamma function grows slower than the Gamma function and is numerically more stable.
Formulas for the Log Gamma Function
Definition
Natural logarithm of the Gamma function
Stirling Approximation
For large x
Recurrence Formula
Logarithmic recurrence
Integral Representation
For Re(x) > 0
Complete Stirling Formula
With Bernoulli numbers B₂ₙ
Properties
Special Values
Numerical Stability
Avoids overflow for large x
Convexity
for x > 0
Applications
Statistics, probability theory, numerical mathematics and computer science.
Detailed Description of the Log Gamma Function
Mathematical Definition
The Log-Gamma function is the natural logarithm of the Eulerian Gamma function. It is particularly important in numerical mathematics because it is numerically more stable than the Gamma function itself for large arguments.
Using the Calculator
Enter the argument x and click 'Calculate'. The function is defined for x > 0 and is particularly useful for large values.
Numerical Advantages
The Log-Gamma function was developed to avoid overflow problems that occur when directly computing the Gamma function for large arguments. It is frequently used in statistics and probability theory.
Properties and Applications
Mathematical Applications
- Numerical computation of factorials
- Statistical distributions (Beta, Gamma)
- Bayesian statistics and machine learning
- Asymptotic expansions
Physical Applications
- Statistical mechanics (entropy calculations)
- Quantum mechanics (wave functions)
- Thermodynamics (partition functions)
- Nuclear physics (decay processes)
Special Properties
- Convexity: ln Γ(x) is convex for x > 0
- Monotonicity: Strictly increasing for x > x₀ ≈ 1.46
- Asymptotics: Stirling approximation for large x
- Stability: Numerically robust for large arguments
Interesting Facts
- ln Γ(x) has a global minimum at x ≈ 1.46163
- The Stirling formula provides excellent approximations
- Important for computing binomial coefficients
- Central to modern statistical software
Calculation Examples
Example 1
ln Γ(1) = 0
Since Γ(1) = 1 and ln(1) = 0
Example 2
ln Γ(1/2) = ln(√π) ≈ 0.5724
Half-integer value
Example 3
ln Γ(10) ≈ 12.80
Numerically stable for large arguments
Stirling Formula and Asymptotics
Asymptotic Expansion
For large x, the Stirling formula provides an excellent approximation:
This formula is particularly useful in statistical inference and for computing probabilities of large samples.
|