rk12_test
rk12_test,
an Octave code which
calls rk12(), which
solves an ordinary differential equation (ODE) using a Runge-Kutta (RK)
method of order 2, estimating the local error with a Runge-Kutta method
of order 1.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the MIT license
Related Data and Programs:
rk12,
an Octave code which
solves an ordinary differential equation (ODE) using a Runge-Kutta (RK)
method of order 2, estimating the local error with a Runge-Kutta method
of order 1.
Source Code:
-
predator_deriv.m
evaluates the derivative for the predator-prey problem.
-
predator_rk1.m
approximates the predator-prey problem using a Runge-Kutta
method of order 1.
-
predator_rk2.m
approximates the predator-prey problem using a Runge-Kutta
method of order 2.
-
predator_rk12.m
approximates the predator-prey problem using a Runge-Kutta
method of order 2, and estimates the error by comparing
with a Runge-Kutta method of order 1.
Last revised on 20 October 2022.