GAMMA(2) GAMMA(2)
NAME
gamma - log gamma function
SYNOPSIS
double gamma(double x)
int signgam;
DESCRIPTION
Gamma returns ln |G(x)|. The sign of G(x) is returned in
the external integer signgam.
EXAMPLES
Computation of the gamma function:
errno = 0;
y = gamma(x);
if(errno || y > 88)
error();
y = signgam*exp(y);
SEE ALSO
intro(2)
Page 1 Plan 9 (printed 10/30/25)