NMath Reference Guide

## Runge |

Class RungeKutta45OdeSolver solves an initial value, Ordinary Differential
Equation (ODE) using an explicit Runge-Kutta (4,5) formula known as the Dormand-Prince pair.

Inheritance Hierarchy

Syntax

The RungeKutta45OdeSolver type exposes the following members.

Constructors

Name | Description | |
---|---|---|

RungeKutta45OdeSolver | Constructs an instance of RungeKutta45OdeSolver. |

Methods

Name | Description | |
---|---|---|

Solve(FuncDouble, DoubleVector, DoubleVector, DoubleVector, DoubleVector) | Solves the given initial value problem of ordinary differential equation of the form y' = f(t,y) | |

Solve(FuncDouble, Double, Double, DoubleVector, Double) | Solves the given initial value problem of ordinary differential equation of the form y' = f(t,y) using default solver options. | |

Solve(FuncDouble, DoubleVector, DoubleVector, DoubleVector, DoubleVector, RungeKutta45OdeSolverOptions) | Solves initial value problem of ordinary differential equations. This function solves of equations of the form y' = f(t,y). If the equations involve a mass matrix, either constant of time and state dependent, it must be specified using the solverOptions parameter. The mass matrix must be nonsigular. | |

Solve(FuncDouble, Double, Double, DoubleVector, Double, RungeKutta45OdeSolverOptions) | Solves the given initial value problem of ordinary differential equation of the form y' = f(t,y) or y' = M(t,y)*f(t,y) for problems that involve a mass matrix M. |

Remarks

Solves the given initial value problem for ordinary differential equations
of the form
y' = f(t,y)
or
y' = M(t,y)*f(t,y)
for problems that involve a mass matrix M.
RungeKutta45OdeSolver is a one-step solver – in computing y(tn), it needs
only the solution at the immediately preceding time point, y(tn-1). The step size is
only the solution at the immediately error bounds specifed in the class
RungeKutta45OdeSolver.Options.

See Also