`
([section] manual, -k keyword, -K [section] search, -f whatis)
man
plain
no title
`

GAMMA(3) libc math functions GAMMA(3)NAMEgamma, gammaf, gammal - (logarithm of the) gamma functionSYNOPSIS#include <math.h>double gamma(doublex);float gammaf(floatx);long double gammal(long doublex);Link with -lm.DESCRIPTIONFor the definition of the Gamma function, seetgamma(3).*BSD version(1,3,5)4.4BSD and FreeBSD libm have agamma()function that computes the Gamma function, as one would expect.glibc version(1,3,5)Glibc has agamma()function that is equivalent tolgamma()and com- putes the natural logarithm of the Gamma function. (This is for com- patibility reasons only. Don't use this function.)HISTORY4.2BSD had agamma()that computed ln(|Gamma(|x|)|), leaving the sign of Gamma(|x|) in(1,8) the external integer signgam. In 4.3BSD the name was changed tolgamma(), and the man(1,5,7) page promises "At some time(1,2,n) in(1,8) the future the name gamma will be rehabilitated and used for the Gamma function" This did indeed happen in(1,8) 4.4BSD, wheregamma()computes the Gamma function (with no effect on signgam). However, this came too late, and we now havetgamma(), the "true gamma" function.CONFORMING TO4.2BSD. Compatible with previous mistakes.SEE ALSOlgamma(3),signgam(3),tgamma(3) GNU 2002-08-10 GAMMA(3)