7.12.8.3 The lgamma functions

Synopsis

1

#include <math.h>
double lgamma(double x);
float lgammaf(float x);
long double lgammal(long double x);

Description

2

The lgamma functions compute the natural logarithm of the absolute value of gamma of x. A range error occurs if x is too large. A range error may occur if x is a negative integer or zero.

Returns

3

The lgamma functions return loge | (Gamma)(x) |.