Evaluating numerical algorithm
Romberg integration starts from trapezoidal estimates with 1, 2, 4, … strips and improves them with . Each column is more accurate than the one before.
Use Romberg integration with 2 levels to estimate . (The exact value is .)
Four strips of plain trapezoids were off by 0.0039; the Romberg corner is off by only 0.000028.
The calculator below opens on this integral. Add a level to see the answer match ln 2 to six places.
Limits can be numbers or constants such as pi or pi/2. Level k uses 2ᵏ strips.