|
IDL Analyst Reference Guide: Special Functions |
|
The IMSL_LNGAMMA function evaluates the logarithm of the absolute value of the gamma function log|G(x)|.
| Note This routine requires an IDL Analyst license. For more information, contact your ITT Visual Information Solutions sales or technical support representative. |
Result = IMSL_LNGAMMA(x [, /DOUBLE])
The value of the logarithm of gamma function log|G(x)|.
Expression for which the logarithm of the absolute value of the gamma function is to be evaluated.
If present and nonzero, double precision is used.
The logarithm of the absolute value of the gamma function log|G(x)| is computed.
In this example, log|G(3.5)| is computed and printed.
PM, IMSL_LNGAMMA(3.5)
1.20097
MATH_NEAR_NEG_INT_WARN—Result is accurate to less than one-half precision because x is too close to a negative integer.
MATH_NEGATIVE_INTEGER—Parameter for the function cannot be a negative integer.
MATH_NEAR_NEG_INT_FATAL—Parameter for the function is too close to a negative integer.
MATH_LARGE_ABS_ARG_OVERFLOW—Parameter |x| must not be so large that the result overflows.
IDL Online Help (March 06, 2007)