Skip to main content

Module romberg

Module romberg 

Source
Expand description

Romberg integration.

Structs§

RombergEngine
Romberg integration: trapezoid estimates with 1, 2, 4, … panels, combined by Richardson extrapolation R(k, j) = R(k, j−1) + (R(k, j−1) − R(k−1, j−1)) / (4^j − 1) to cancel the even powers of the step in the Euler-Maclaurin error expansion. Converges very fast for smooth integrands (row k is exact for polynomials of degree 2k + 1); for non-smooth or periodic integrands use an adaptive or plain trapezoid rule instead.