tgamma(3M)tgamma(3M)NAMEtgamma(), tgammaf(), tgammal(), tgammaw(), tgammaq() - true gamma func‐
tions
SYNOPSISDESCRIPTION
The function computes the true gamma function of x.
In contrast, the and functions compute the log of gamma.
is a version of it takes a argument and returns a result.
is a version of it takes a argument and returns a result.
is an version of it takes an argument and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use these functions compile either with the default option or with
the and options.
To use or compile also with the option.
To use any of these functions, make sure your program includes and link
in the math library by specifying on the compiler or linker command
line.
For more information, see the at the following site:
RETURN VALUE
If x and raises the divide-by-zero exception.
If x is a negative integer, returns a NaN and raises the invalid excep‐
tion.
If x equals -INFINITY, returns a NaN and raises the invalid exception.
If x equals +INFINITY, returns +INFINITY.
If x is NaN, returns NaN.
returns infinity (equal to in lieu of a value whose magnitude is too
large, and raises the overflow and inexact exceptions.
raises the inexact exception whenever a rounded result does not equal
the mathematical result.
ERRORS
If x is a negative integer, sets to [EDOM].
HP-UX functions on Integrity servers do not set by default. For set‐
ting, compile with the option.
SEE ALSOexp(3M), lgamma(3M), log(3M), math(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arith‐
metic'')
HP Integrity Server Only tgamma(3M)