The GAMMA function returns the gamma function of X . The domain of the function is 0 < X < 34.5.
The gamma function is defined as:
If X is double-precision, the result is double-precision, otherwise the argument is converted to floating-point and the result is floating-point.
Use the LNGAMMA function to obtain the natural logarithm of the gamma function when there is a possibility of overflow.