midpoint_explicit


midpoint_explicit, an R code which solves one or more ordinary differential equations (ODE) using the (explicit) midpoint method, also called the modified Euler method.

Licensing:

Copyright 2016 James P. Howard, II

The computer code and data files on this web page are distributed under the BSD-2-Clause license.

midpoint_explicit is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version and an R version

Related Data and Programs:

adamsbashforth, an R code which uses an Adams Bashforth method to solve an ordinary differential equation (ODE).

backward_euler, an R code which implements the backward Euler method for solving an ordinary differential equation (ODE).

crank_nicolson, an R code which implements the Crank Nicolson method for solving an ordinary differential equation (ODE), extracted from the pracma library of Hans Borchers.

euler, an R code which uses the Euler method to solve a single ordinary differential equation (ODE).

eulersys, an R code which uses the Euler method to solve a system of ordinary differential equations (ODE).

midpoint_explicit_test

rungekutta4, an R code which uses a 4-th order Runge-Kutta method to solve an ordinary differential equation (ODE).

Author:

Original R code by James Howard; Modifications by John Burkardt.

Reference:

  1. James Howard,
    Computational Methods for Numerical Analysis with R,
    CRC Press, 2017,
    ISBN13: 978-1-4987-2363-3.
  2. https://CRAN.R-project.org/package=cmna

Source Code:


Last revised on 23 March 2020.