Question: Develop your own function m - file to implement the 4 th Order Adams - Bashforth - Moulton ( ABM - 4 ) method with

Develop your own function m-file to implement the 4th Order Adams-Bashforth-Moulton (ABM-4) method with a corrector iteration. This is a predictor-corrector scheme with a 4th Order Adams-Bashforth predictor and a 4th Order Adams-Moulton corrector. Use 4th Order Runge-Kutta for the first three time steps. Note you do not need to make this function work for a system of ODEs. Your function need only work for a single ODE (not a system) and should accept the following inputs (in order, and same as the Heun method function you wrote for PA8):
A function dydt that defines the ODE to be solved. Your ABM function should accommodate optional parameter inputs to the dydt function.
An evenly spaced time vector that defines the step size, h for the integration (by its increment) and the time span (first and last values) over which the IVP is to be integrated.
The initial condition for y.
A stopping criterion for the corrector iteration. If the stopping criterion is left blank, your function should default to implementing the ABM method without iterating the corrector equation.
Varargin to accept any optional parameters needed to evaluate the dydt function.

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!