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

◆ laguerre()

double laguerre ( unsigned int  n,
double  x 
)

Laguerre polynomial Ln(x)

Purpose
laguerre computes the Laguerre polynomial of x.
Ln(x) = e^x/n! dn/dxn(x^n e^(-x))
Returns
Laguerre polynomial Ln(x).
Parameters
[in]nDegree of polynomial n.
[in]xArgument x.
Error handling
  • Range error (ERANGE) may be reported.
Note
Note that the worst errors occur when the degree increases, values greater than ~120 are very unlikely to produce sensible results. Further the relative errors are likely to grow arbitrarily large when the function is very close to a root.
Reference
boost/math/special_functions