Defining the Trapezoid/Midpoint rules
We can define the Trapezoid rule as follows:
Define a similar function for the midpoint rule, calling it .
Use a table to show the values of the Trapezoid and Midpoint rules for at least one order of magnitude of n (i.e., 100 to 1000, for example).
Created by Mathematica (April 22, 2004)