lgamma(3) — Subroutines
NAME
lgamma − Computes the logarithm of the gamma function
LIBRARY
Math Library (libm.a)
SYNOPSIS
#include <math.h>
double lgamma (double x);
float lgammaf (float x);
DESCRIPTION
lgamma() and lgammaf() return the logarithm of the absolute value of the gamma of x, or ln(|G(x)|). The sign of the gamma of x is returned in the external integer variable signgam. The x parameter cannot be 0 or a negative integer.
| Function | Exceptional Argument | Routine Behavior |
| lgamma(), lgammaf() | |x| = infinity | invalid argument |
| lgamma(), lgammaf() | x = 0, -1, -2, -3,... | invalid argument |
| lgamma(), lgammaf() | x > lgamma_max_float | overflow |
| Value | Data | Hexadecimal Value | Decimal Value |
| Name | Type | ||
| lgamma_max_float | F_FLOAT | 50F97CC6 | 2.0594342e36 |
| G_FLOAT | F55FC5015ABD7F67 | 1.2812545499066958e305 | |
| S_FLOAT | 7BC650F9 | 2.0594342e36 | |
| T_FLOAT | 7F475ABDC501F55F | 1.2812545499066958e305 |