Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS V1R5 |
#define _ISOC99_SOURCE
#include <math.h>
double tgamma(double x);
float tgammaf(float x);
long double tgammal(long double x);
#define _TR1_C99
#include <math.h>
float tgamma(float x);
long double tgamma(long double x);
Function | Hex | IEEE |
---|---|---|
tgamma | X | X |
tgammaf | X | X |
tgammal | X | X |
Special behavior for IEEE: A pole error occurs if the input of tgammaf is 0 and sets errno to ERANGE. A domain error occurs if the input of tgammaf is a negative integer and sets errno to EDOM.
The tgamma functions return G(x).