GAMMA(3M) COMMAND REFERENCE GAMMA(3M)
NAME
gamma - log gamma function
SYNOPSIS
#include <math.h>
double gamma (x)
double x;
DESCRIPTION
Gamma returns ln | (|x|)|. The sign of (|x|) is returned
in the external integer signgam.
EXAMPLES
The following C program might be used to calculate :
y = gamma(x);
if (y > 88.0)
error();
y = exp(y);
if(signgam)
y = -y;
FILES
/usr/lib/libm.a Mathematical library functions.
DIAGNOSTICS
A huge value is returned for negative integer arguments.
CAVEATS
There should be a positive indication of error.
SEE ALSO
intro(3m).
Printed 10/17/86 1
%%index%%
na:72,62;
sy:134,347;
de:481,229;
ex:710,257;
fi:967,121;
di:1088,141;
ca:1229,104;
se:1333,99;
%%index%%000000000129