Function integrateDEI

Calculate the integral of f(x) over the infinite interval (a,∞) using double exponential integration.

Result!Real integrateDEI(Func, Real) (
  scope Func f,
  Real a,
  Real epsRel = cast(Real)1e-06
);

Example

double f(double x) { return (1 + 10*x)^^(-2) / sqrt(x); }
auto i = integrateDEI(&f, 0.0);