Question: Consider the following function: h(x) = = *(1+ (1 + ex) dx Using the following parameters in your functions: - func: the function/equation that

Consider the following function: h(x) = = *(1+ (1 + ex) dx Using the following parameters in your functions: - func: the function/equation that you are required to integrate a, b: the integration limits n: the number of points to be used for the integration - I: Integral estimate A. Write a function capable of performing numerical integration of h(x) using the composite trapezoidal rule. Use your function to solve the equation with 7 points. B. Write a function capable of performing numerical integration of h(x) using the composite Simpson's 1/3 rule. Use your function to solve the equation with 7 points. C. Calculate the absolute percentage error between MATLAB's integral estimate and the results of part A and B. Activate Winc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
