Computes the natural logarithm of the gamma function.
The gamma: IEEE Math Library (libm.a) or System V Math Library (libmsaa.a)
#include <math.h>
extern int signgam;
double gamma (x)
double x;
The gamma subroutine computes the logarithm of the gamma function.
The sign of gamma( x) is returned in the external integer signgam.
cc lgamma.c -lm
Item | Description |
---|---|
x | Specifies the value to be computed. |