integralScan

fun integralScan(    a: Double,     b: Double,     eps: Double,     f: (Double) -> Double): IntegralScanResult

Returns samples of g(t)=atf(x)dx for various values atb. The sampling points are chosen adaptively using the algorithm adaptsim from Gander and Gautschi (more accessible link).

Parameters

a

a

b

b

f

f(x)

eps

desired error in the length approximation g(b)