Write a program for the corrected trapezoid rule. In this case input will consist of f(x), f´(x), [a,b], and N. Apply this program to the integral in Exercise 7.4-3 and compare the results with those given by Simpson's rule.
Exercises 7.4-3
Write a program for the composite Simpson rule. Inputs to the program should be f(x), the interval [a,b] and the number of subdivisions N. Use this program to calculate
with N = 10 and N = 20 subdivisions.