Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started