Finance

Charts

Statistics

Macros

Search

How to use the GAMMALN() function in Excel

This function returns the natural logarithm of the gamma function, Γ(*x*).

Syntax:

GAMMALN(x)

Arguments:

  • x (required) – The value for which you want to calculate GAMMALN().

Background:

The GAMMALN() function returns the natural logarithm (base *e*) of the gamma function.

logarithm of a number is the exponent to which a fixed base must be raised to produce that number. Common logarithms include:

  • Natural logarithm (ln): Base *e* (Euler’s number ≈ 2.71828)
  • Base-10 logarithm (log₁₀)
  • Base-2 logarithm (log₂)

The logarithm (to base *b*) of a number *y* is the exponent by which *b* must be raised to obtain *y*. Thus, the logarithmic function is the inverse of the exponential function.

Calculation:

GAMMALN(x) is computed as:

ln⁡(Γ(x))ln(Γ(x))

where Γ(x) is the gamma function.

Example:

To calculate GAMMALN(4), refer to Figure below, which illustrates the computation.

The GAMMALN() function returns the natural logarithm 1.7918 for the gamma function evaluated at *x* = 4.

0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx