Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (i - m) lgammal(3)
RETURN VALUES
Upon successful completion, the lgammal() function returns the logarithmic gamma of x.
For IEEE floating-point values, if the value of x is NaN, NaN is returned. If the value of x is
positive infinity, NaN is returned. If the value of x is negative infinity, HUGE_VALL is returned
and errno is set to [EDOM].
If the value of x is 0.0 (zero), HUGE_VALL is returned and errno is set to [EDOM]. If the
value of x is a nonpositive integer, HUGE_VALL is returned and errno is set to [EDOM].
If the correct value would cause overflow, HUGE_VALL is returned.
If the correct value would cause underflow, 0.0 (zero) is returned.
ERRORS
If any of the following conditions occurs, the lgammal() function sets errno to the correspond-
ing value:
[EDOM] The value of x is 0.0 (zero), negative infinity, or a nonpositive integer.
RELATED INFORMATION
Functions: exp(3), fp_class(3), gamma(3), isnan(3), lgamma(3), lgammaf(3).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
527187-017 Hewlett-Packard Company 4−97