The LNGAMMA function returns the logarithm of the gamma function of Z.
Result = LNGAMMA(Z)
For negative integers, LNGAMMA returns the correct value of Infinity. If Z is double-precision, the result is double-precision (either double or double complex), otherwise the result is single-precision (either float or complex).
| Note |
The expression for which the logarithm of the gamma function will be evaluated. Z may be complex.
This routine is written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs. The values stored in the
To find the logarithm of the gamma function of 0.5 and store the result in variable A, enter:
A = LNGAMMA(0.5)
Introduced: Pre 4.0
Z argument accepts complex input: 5.6