Composite midpoint rule error (source code)

= Composite midpoint rule error

For $f\in C^2[a,b]$, the composite midpoint rule with mesh width $h$ has local error $O(h^3)$ and global error $O(h^2)$.