LNGAMMA
The
LNGAMMA function returns the
logarithm of the gamma function of
X
. This function is undefined for negative integers. If the argument is double-precision, the result is double-precision. Otherwise, this function yields floating-point results.
Calling Sequence
Result = LNGAMMA(
X
)
Arguments
X
The expression for which the logarithm of the gamma function will be evaluated.
Example
To find the logarithm of the gamma function of 0.5 and store the result in variable A, enter:
A = LNGAMMA(0.5)