Question: Problem 4. (Module 8) Evaluate the integrals using the self-developed Matlab programs that use a) Midpoint rule with the space between points, h=0.4. b) Trapezoidal

Problem 4. (Module 8) Evaluate the integrals using the self-developed Matlab programs that use a) Midpoint rule with the space between points, h=0.4. b) Trapezoidal rule with the space between points, h=0.4. c) Find the percentage relative error in each case. Note: Matlab program Mod8_Example5.m can be used; however it is work only for Midpoint rule, and it needs to be adapted to the Trapezoidal rule. 1. 548 24e-2x dx, h = 0.4 2. SE V1 + x2 dx, h = 0.3 Put your answer in this field: First integral Midpoint rule: I = Error = Trapezoidal rule I = Error = Second integral Midpoint rule: I= Error = Trapezoidal rule I = Error = Paste your Trapezoidal rule Matlab program here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
