Logarithm of the gamma function of a real argument.
Loading LOADSUB ALL FROM "GAMMA.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage REAL X,Y
Y=FNLoggamma(X)
Description
FNLoggammareturns the value of the logarithm of the gamma function ofx, log[Γ(x)]. The value of log[Γ(x)] approaches ± asxapproaches a negative integer or zero.
Errors
FNLoggammacauses an HTBasic error if its argument is not of type REAL or if the magnitude of log[Γ(x)] exceeds MAXREAL, the largest number representable.