Please solve it using MATLAB only
Posted: Sat May 14, 2022 4:22 pm
Please solve it using MATLAB only
= Q1. Use the Euler method with step size h = 0.01 to approximate the solutions of the following initial value problem dy = 1 +(t – y)?, = 2 <t<3, dt y(2) = 1 1 Q2. Given that the exact solution of the problem is y(t) = t + +1+ Compute the absolute error in the Euler approximation (in Q1) N
Q3. Plot the absolute error Q4. Use the appropriate matlab command to find the maximum absolute error (this is supposed to be the maximum value of the absolute error in Q2.) Q5. Plot the exact and approximate solutions in the same graph
= Q1. Use the Euler method with step size h = 0.01 to approximate the solutions of the following initial value problem dy = 1 +(t – y)?, = 2 <t<3, dt y(2) = 1 1 Q2. Given that the exact solution of the problem is y(t) = t + +1+ Compute the absolute error in the Euler approximation (in Q1) N
Q3. Plot the absolute error Q4. Use the appropriate matlab command to find the maximum absolute error (this is supposed to be the maximum value of the absolute error in Q2.) Q5. Plot the exact and approximate solutions in the same graph