midpoint_gsl_test


midpoint_gsl_test, a C++ code which calls the Gnu Scientific Library (GSL) implicit midpoint method solver for ordinary differential equation (ODE), and uses gnuplot() to plot the resulting solution.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

midpoint_gsl_test is available in a C version and a C++ version.

Related Data and Programs:

euler, a C code which solves one or more ordinary differential equations (ODE) using the forward Euler method.

lorenz_ode, a C code which sets up the Lorenz system of ordinary differential equations (ODE), which exhibit sensitive dependence on the initial conditions.

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, applying a fixed point iteration to solve the associated nonlinear equation.

ode, a C code which solves a system of ordinary differential equations (ODE), by Shampine and Gordon.

ode_moshier, a C code which implements the Adams-Bashforth-Moulton and Runge-Kutta (RK) methods of solving systems of ordinary differential equations (ODE), by Steven Moshier.

predator_prey_ode, a C code which solves a pair of predator prey ordinary differential equations (ODE).

stiff_ode, a C code which considers an ordinary differential equation (ODE) which is an example of a stiff ODE.

three_body_ode, a C code which defines a set of ordinary differential equations (ODE) which simulates the behavior of three planets, constrained to lie in a plane, and moving under the influence of gravity, by Walter Gander and Jiri Hrebicek.

Source Code:


Last revised on 10 November 2023.