@(#)gamma.3 6.1 (Berkeley) 05/15/85
GAMMA 3M ""
.AT 3
NAME
gamma - log gamma function
SYNOPSIS
#include <math.h>double gamma(x) double x;
DESCRIPTION
Gamma returns ln \||\|\(*G(\||\|x\||\|)\||\|.
The sign of \(*G(\||\|x\||\|) is returned in the external integer
signgam . The following C program might be used to calculate \(*G:
y = gamma(x); if (y > 88.0) error(); y = exp(y); if(signgam) y = -y;
DIAGNOSTICS
A huge value is returned for negative integer arguments.
BUGS
There should be a positive indication of error.