1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\" Modified 2003-11-18, aeb: historical remarks
6 .TH GAMMA 3 2008-08-05 "GNU" "Linux Programmer's Manual"
8 gamma, gammaf, gammal \- (logarithm of the) gamma function
12 .BI "double gamma(double " x ");"
14 .BI "float gammaf(float " x ");"
16 .BI "long double gammal(long double " x ");"
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
27 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
31 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
32 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
35 These functions are deprecated: instead, use either the
39 functions, as appropriate.
41 For the definition of the Gamma function, see
44 The libm in 4.4BSD and some versions of FreeBSD had a
46 function that computes the Gamma function, as one would expect.
50 function that is equivalent to
52 and computes the natural logarithm of the Gamma function.
60 Because of historical variations in behavior across systems,
61 this function is not specified in any standard.
67 .RI ln(|Gamma(| x |)|),
70 in the external integer
72 In 4.3BSD the name was changed to
74 and the man page promises
77 "At some time in the future the name gamma will be rehabilitated
78 and used for the Gamma function"
81 This did indeed happen in 4.4BSD, where
83 computes the Gamma function (with no effect on
85 However, this came too late, and we now have
87 the "true gamma" function.
88 .\" The FreeBSD man page says about gamma() that it is like lgamma()
89 .\" except that is does not set signgam.
90 .\" Also, that 4.4BSD has a gamma() that computes the true gamma function.