LNGAMMA Function
Evaluates the logarithm of the absolute value of the gamma function log|Γ(x)|.
Usage
result = LNGAMMA(x)
Input Parameters
x—Expression for which the logarithm of the absolute value of the gamma function is to be evaluated.
Returned Value
result—The value of the logarithm of gamma function log|Γ(x)|.
Input Keywords
Double—If present and nonzero, double precision is used.
Discussion
The logarithm of the absolute value of the gamma function log|Γ(x)| is computed.
Example
In this example, log|Γ(3.5)| is computed and printed.
PM, LNGAMMA(3.5) ; PV-WAVE prints: 1.20097
Warning Errors
MATH_NEAR_NEG_INT_WARN—Result is accurate to less than one-half precision because x is too close to a negative integer.
Fatal Errors
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.