I've seen two different truncation formulas for the midpoint rule. A common one is $h^3 \frac{ f''}{24}$.
Another, referred to as open Newton Cotes, is $h^3 \frac{f''}{3}$.
The Newton Cotes version is from a numerical method called non self-starting heun.
Why would they differ?
Vince