GAMMALN

Archived content. No warranty is made as to technical accuracy. Content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the natural logarithm of the gamma function, (x).

Syntax

GAMMALN ( x )

X is the value for which you want to calculate GAMMALN.

Remarks

  • If x is nonnumeric, GAMMALN returns the #VALUE! error value.

  • If x 0, GAMMALN returns the #NUM! error value.

  • The number e raised to the GAMMALN(i) power, where i is an integer, returns the same result as (i - 1)!.

  • GAMMALN is calculated as follows:

    Cc767573.ZA060511431033(en-us,TechNet.10).gif

    where:

    Cc767573.ZA060511441033(en-us,TechNet.10).gif

Example

Formula

Description (Result)

=GAMMALN(4)

Natural logarithm of the gamma function at 4 (1.791759)

Show: