MicrOS
lgamma.c File Reference
#include "../math.h"

Functions

double lgamma (double x)
 Compute gamma function. More...
 

Function Documentation

◆ lgamma()

double lgamma ( double  x)

Compute gamma function.

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 pole error may occur if x is a negative integer or zero.

Parameters
xParameter for the log-gamma function.
Returns
The lgamma functions return log_e | Γ(x) |.