Write a MATLAB program that uses the predictorcorrector method to solve the ODE subject to the initial

Question:

Write a MATLAB program that uses the predictor–corrector method to solve the ODEdy dx =

subject to the initial condition y(0) = 1. You should compute the solution for the step sizes h = 0.1, 0.01, . . . , 10−7.Make a log–log plot of the absolute error in the numerical solution at the value x = 2 as a function of the step size. You should define the absolute error asE = y numerical - Yexact

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: