[Solved]1 Approximate Following Integral Exp Z Using Composite Midpoint Rule Composite Trapezoid R Q37245768
matlab
1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations. Show transcribed image text 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composite Simpson’s method. Each method should involve exactly n-21 integrand evaluations, k as a function of n. 1:20. On the same plot, graph the absolute error 2. Approximate the integral from Question 1 using integral, Matlab’s built-in numerical integrator. What is the absolute error? 3. Repeat Question 1 for V1 +(cosdr using integral for the “exact” ส。lution. Optional ungraded: Improve integrate’s approximation using its AbsTol and RelTol options. Also, exploit the periodicity of the integrand to improve your approximations without increasing the number of integrand evaluations.
Expert Answer
Answer to 1. Approximate the following integral, exp(z), using the composite midpoint rule, composite trapezoid rule, and composit… . . .
OR

