### Demonstrating behaviors of calculus

Numerical approximations to integrals typically get better -- i.e., their error goes down -- proportional to a power of N, the number of subintervals in the interval of integration. For the upper and lower sums, the error typically goes down like 1/N as N increases. For the midpoint and trapezoidal rules, the error typically goe