a. Find the actual value of the integral analytically.
b. Evaluate by executing the user-defined function Simpson (Section 6.3) using n = 4.
c. Evaluate by executing the user-defined function Gauss_ Quad_4 (see Problem 69).
d. Calculate the relative error in (b) and (c) and comment.
Write a user-defined function with syntax I = Gauss_ Quad_4(f,a,b) that evaluates the integral of f from a to b using the Gaussian quadrature with n = 4. Execute Gauss_Quad_4 to evaluate the integral in Problem 67:
Using the Gaussian quadrature with the indicated number(s) of nodes