double gamma(double x);
float gammaf(float x);
long double gammal(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
For the definition of the Gamma function, see tgamma(3).
|gamma(), gammaf(), gammal()||Thread safety||MT-Unsafe race:signgam|
"At some time in the future the name gamma will be rehabilitated and used for the Gamma function"
This did indeed happen in 4.4BSD, where gamma() computes the Gamma function (with no effect on signgam). However, this came too late, and we now have tgamma(3), the "true gamma" function.