KrisLibrary  1.0.0
Namespaces | Functions
diffeq.h File Reference

Various methods for solving ordinary differential equations. More...

#include "function.h"

Go to the source code of this file.

Namespaces

 Math
 Contains all definitions in the Math package.
 

Functions

Real Math::RungeKutta4_step (RealFunction2 *f, Real t0, Real h, Real w)
 Runge-Kutta 4 step for 1D ODEs. More...
 
Real Math::RungeKutta4 (RealFunction2 *f, Real a, Real b, Real alpha, int n)
 Runge-Kutta 4 method for 1D ODEs. More...
 
Real Math::RKF (RealFunction2 *f, Real a, Real b, Real alpha, Real tol, Real hmax, Real hmin)
 Runge-Kutta-Fehlberg method for 1D ODEs. More...
 
Real Math::AM2I (RealFunction2 *f, Real h, Real t0, Real t1, Real t2, Real w0, Real w1, Real w2)
 Adams-Moulton 2 step implicit method for 1D ODEs. More...
 
Real Math::AM2E (RealFunction2 *f, Real h, Real t0, Real t1, Real w0, Real w1)
 Adams-Bashforth 2 step explicit method for 1D ODEs. More...
 
Real Math::AM2_predictor_corrector_step (RealFunction2 *f, Real h, Real t0, Real t1, Real t2, Real w0, Real w1)
 Adams-Moulton predictor-corrector step of order 2 for 1D ODEs.
 
Real Math::AM2_predictor_corrector (RealFunction2 *f, Real a, Real b, Real alpha0, Real alpha1, int n)
 Adams-Moulton predictor-corrector of order 2 for 1D ODEs.
 
void Math::Euler_step (DiffEqFunction *f, Real t0, Real h, const Vector &w0, Vector &w1)
 Euler step for an ODE system. More...
 
void Math::RungeKutta4_step (DiffEqFunction *f, Real t0, Real h, const Vector &w0, Vector &w1)
 Runge-Kutta 4 step for an ODE system. More...
 
void Math::Euler (DiffEqFunction *f, Real a, Real b, const Vector &alpha, int n, Vector &wn)
 Solve an ODE system using Euler's method. More...
 
void Math::RungeKutta4 (DiffEqFunction *f, Real a, Real b, const Vector &alpha, int n, Vector &wn)
 Solve an ODE system using the Runge Kutta 4 method. More...
 

Detailed Description

Various methods for solving ordinary differential equations.