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