XLPack 6.1
C/C++ API Reference Manual
Loading...
Searching...
No Matches

◆ _en()

double _en ( unsigned int  n,
double  x 
)

Exponential integral En(x)

Purpose
en computes the exponential integral En(x) for the argument x.
En(x) = ∫ exp(-xt)/t^n dt [1, ∞]
Returns
Exponential integral En(x).
Parameters
[in]nArgument n. (n >= 0)
[in]xArgument x. (x >= 0)
Error handling
  • If x < 0, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions