Question: Using matlab, please! 42 Problem 4. (Module 8) Given two integrals 1. * 2*e-2xdx, h = 0.2 2. SA V1 + x2 dx, h= 0.3

Using matlab, please!
Using matlab, please! 42 Problem 4. (Module 8) Given two integrals 1.
* 2*e-2xdx, h = 0.2 2. SA V1 + x2 dx, h=

42 Problem 4. (Module 8) Given two integrals 1. * 2*e-2xdx, h = 0.2 2. SA V1 + x2 dx, h= 0.3 1) Compute the true integrals analytically using Matlab symbolic operations. 2) Evaluate the integrals using the self-developed Matlab programs that use a) Midpoint rule b) Trapezoidal rule 3) Find the percentage relative error in each case. Note: Matlah 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 described in Module 8 (do not use the embedded Matlab function "trapz"). Put your answer in this field. Represent the result with 8 decimal places. 1"' integral True numerical value of integral is true = Midpoint rule: 1 Error(%) = Trapezoidal rule I Error(%) = 2 integral True numerical value of integral I true = Midpoint rule T Error(%) = Trapezoidal rule 1 Error(%) 7 Paste your complete working) Matlab program here (use lopt font.) Wint: to display the result with required decimal places use disph I true I trapt Error) Bfprintf('81.31 $1.81 1.81 91.4F ',h, Ltrue, I trap, Ecror)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!