|
|
◆ lgammas()
| double lgammas |
( |
double |
x, |
|
|
int * |
sign |
|
) |
| |
Logarithm of gamma function ln|Γ(x)| and sign of gamma function
- Purpose
- lgammas computes the logarithm of the gamma function ln|Γ(x)| at x, and the sign of the gamma function Γ(x).
- Returns
- Logarithm of the gamma function ln|Γ(x)|.
- Parameters
-
| [in] | x | Argument x. (x != negative integer, x != 0) |
| [out] | sign | Sign of gamma function.
= -1: Negative.
= 1: Positive. |
- Error handling
- If x is an negative integer or zero, inf is returned and range error (ERANGE) is reported.
- Other range error (ERANGE) may occur.
- Reference
- boost/math/special_functions
|