Question: USING MATLAB 5. Write a program that uses Euler's method to solve the following initial value problem using a step of h = 0.2 second.
5. Write a program that uses Euler's method to solve the following initial value problem using a step of h = 0.2 second. Knowing that the analytical solution is y(t) = t +1 -0.5e', make the program calculate and display the true error at t = 1 second. dy y(0) = 0.5 dt =y-t, 6. Write a program that uses Euler's Method to solve the same initial value problem in Question 1, this time with a step of h = 0.1 second from 0 to 1 second. Knowing that the analytical solution is y(t) =t+1 -0.5e', make the program graph both analytical and numerical results. (hint: use MATLAB's plot function)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
