decrease_h decrease_h: Look at how trapezoid quadrature error behaves as we decrease interval width h k xleft xright int quad error rate 0 -1.000000 1.000000 2.3504 3.08616 0.735759 0.0000 1 -0.500000 0.500000 1.04219 1.12763 0.0854354 0.1161 2 -0.250000 0.250000 0.505225 0.515707 0.0104819 0.1227 3 -0.125000 0.125000 0.250652 0.251956 0.00130412 0.1244 4 -0.062500 0.062500 0.125081 0.125244 0.000162824 0.1249 5 -0.031250 0.031250 0.0625102 0.0625305 2.0347e-05 0.1250 6 -0.015625 0.015625 0.0312513 0.0312538 2.54319e-06 0.1250 7 -0.007812 0.007812 0.0156252 0.0156255 3.17893e-07 0.1250 8 -0.003906 0.003906 0.00781252 0.00781256 3.97365e-08 0.1250 9 -0.001953 0.001953 0.00390625 0.00390626 4.96706e-09 0.1250 10 -0.000977 0.000977 0.00195313 0.00195313 6.20882e-10 0.1250 Normal end of execution. quit