Midpoint versus Trapezoid Rule Error

This applet allows the user to explore the effect of various parameters (polynomial degree, coefficients, interval length, number of rectangles) on the error involved in the Midpoint and Trapezoid approximations of the area under a curve.