Romberg Integration
Composite Trapezoid rule applied to y = cos(x) on the interval [0,π/2]
i O(h^2) O(h^4) O(h^6) O(h^8) O(h^10)
h 0.78539816350000
h/2 0.94805944890000 1.00227987736667
h/4 0.98711580110000 1.00013458516667 0.99999156568667
h/8 0.99678517200000 1.00000829563333 0.99999987633111 1.00000000824610
h/16 0.99919668060000 1.00000051680000 0.99999999821111 1.00000000014571 1.00000000011395