integrateDE

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

Result!Real
integrateDE
(
Func
Real
)
(
scope Func f
,
Real a
,
Real b
,
Real epsRel = cast(Real)1e-6
)

Examples

double f(double x) { return x^^2 * log(1/x); }
auto i = integrateDE(&f, 0.0, 1.0);

Meta