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

◆ polygamma()

double polygamma ( int  n,
double  x 
)

Polygamma function ψn(x)

Purpose
polygamma computes the polygamma function ψn(x), where x is not 0, -1, -2, ...
ψn(x) = dnψ(x)/dxn = d(n+1)/dx(n+1) ln(Γ(x))
Returns
Polygamma function ψn(x).
Parameters
[in]nArgument n. (n >= 0)
[in]xArgument x. (x != negative integer, x != 0)
Error handling
  • If n < 0, domain error (EDOM) occurs.
  • If x is negative integer or 0, domain error (EDOM) or range error (ERANGE) occurs.
  • Other range error (ERANGE) may occur.
Reference
boost/math/special_functions