The
error in an
approximation obtained via the
Trapezoidal Rule described above is given by:
(a-b)^3
E(n) = ---------*f"(c)
12*n^2
where f" is the
second derivative of the function f being integrated from a to b, and c is some number such that a <= c <= b, and n is the number of trapezoids used for the approximation.