Contents
ALGORITHMS
Site map
Links
Site and author
News
About the site
FAQ
Contact
TERMS OF USE
Contents - Differential equations - Runge-Kutta method

Fourth order Runge-Kutta method

This routine numerically integrates an ordinary differential equation y'=F(x,y), x∈ using a fourth order Runge-Kutta method method.

The input parameters are given below:

  • X is the starting value of the independent variable X.
  • X1 is the point at which a solution is desired.
  • Y is the initial value of the dependent variable Y.
  • N is the number of steps to take.

The routine returns the value of the dependent variable Y at the desired point X1.

The user supplies the routine F, which returns the derivative y' at (x,y).

Report a bug

Source codes

C#

C# 1.0 source.
rungekutta.csharp.zip - Fourth order Runge-Kutta method


C++

C++ source.
rungekutta.cpp.zip - Fourth order Runge-Kutta method
ablas.zip - optimized basic linear algebra subroutines with SSE2 support (for C++ sources only)


Delphi

Delphi source.
Can be compiled under FPC (in Delphi compatibility mode).
rungekutta.delphi.zip - Fourth order Runge-Kutta method


Visual Basic 6

Visual Basic 6 source.
rungekutta.vb6.zip - Fourth order Runge-Kutta method


Zonnon beta

Zonnon source.
Zonnon is an experimental language developed at ETH Zurich.
See www.zonnon.ethz.ch for more information.
rungekutta.zonnon.zip - Fourth order Runge-Kutta method



 
 
Sergey Bochkanov, Vladimir Bystritsky
Copyright © 1999-2008