GNU/Linux |
RedHat 9.0(Shrike) |
|
![]() |
gammal(3) |
![]() |
gamma − logarithm of the gamma function
#include <math.h>
double gamma (double x);
float gammaf (float x);
long double gammal (long double x);
The gamma() functions exist for compatibility reasons. They are equivalent to lgamma() etc. Use these. Use of the name gamma() is confusing, since these functions do not compute the Gamma function, but the natural logarithm of the Gamma function.
Nonstandard. Compatible with previous mistakes.
lgamma(3), signgam(3), tgamma(3)
![]() |
gammal(3) | ![]() |