rk2, a C++ code which solves one or more ordinary differential equations (ODE) using an explicit Runge-Kutta method of order 2, also known as Heun's method, the explicit midpoint method, or the modified Euler method.
The information on this web page is distributed under the MIT license.
rk2 is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
euler, a C++ code which solves one or more ordinary differential equations (ODE) using the forward Euler method.
midpoint, a C++ code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, with a version of fsolve() handling the associated nonlinear equations, and using a fixed time step.
midpoint_explicit, a C++ code which solves one or more ordinary differential equations (ODE) using the (explicit) midpoint method, also called the modified Euler method.
midpoint_fixed, a C++ code which solves one or more ordinary differential equations (ODE) using the (implicit) midpoint method, using fixed point iteration for the nonlinear equation.
midpoint_gsl_test, a C++ code which calls the Gnu Scientific Library (GSL) implicit midpoint method solver for ordinary differential equations (ODE), and uses gnuplot() to plot the resulting solution.
predator_prey_ode, a C++ code which solves a pair of predator prey ordinary differential equations (ODE).
rk1, a C++ code which solves one or more ordinary differential equations (ODE) using an explicit Runge-Kutta method of order 1, usually known as Euler's explicit method.
rk4, a C++ code which applies the fourth order Runge-Kutta (RK) algorithm to estimate the solution of an ordinary differential equation (ODE).
spring_ode, a C++ code which shows how line printer graphics can be used to make a crude illustration of a solution of the ordinary differential equation (ODE) that describes the motion of a weight attached to a spring.
stiff_ode, a C++ code which considers an ordinary differential equation (ODE) which is an example of a stiff ODE.