Back to Functions

GAMMALN

Returns the the logarithm of a specified Gamma function, base e (Euler's number).

MathGAMMALN(value)

The GAMMALN function in Google Sheets returns the natural logarithm (base e) of the Gamma function evaluated at a given value. It's frequently used in advanced statistical and probability calculations where working with logarithms avoids overflow from very large Gamma function results. Dive into our comprehensive guide to master its application.

Parameters

  • value: A positive number for which to calculate the natural log of the Gamma function.

Step-by-Step Tutorial

  1. Calculating the log-Gamma of a value:
    • Example: =GAMMALN(5)
    • Result: 3.1780... (the natural log of Gamma(5), which equals 4! = 24)

Use Cases and Scenarios

  1. Probability Distributions: Compute components of gamma, beta, and chi-squared distribution formulas without overflow issues.
  2. Statistical Modeling: Support maximum likelihood calculations that rely on log-Gamma terms.
  3. Combinatorics: Approximate factorials of large numbers via the relationship between the Gamma function and factorials.

Related Functions

  • GAMMA: Returns the value of the Gamma function evaluated at a specified value.
  • EXP: Returns Euler's number, e, raised to a power.

Related Articles

No related articles available for the GAMMALN function.

Newsletter

More GAMMALN examples coming soon.

We are building short, practical updates for Sheets power users.