XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ 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]xArgument x. (x != negative integer, x != 0)
[out]signSign 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