Namespaces

Types in MathNet.Numerics.OdeSolvers

Type RungeKutta

Namespace MathNet.Numerics.OdeSolvers

ODE Solver Algorithms

Static Functions

Public Static Functions

Double[] FourthOrder(double y0, double start, double end, int N, Func<double, double, double> f)

Fourth Order Runge-Kutta method
Parameters
double y0

initial value

double start

start time

double end

end time

int N

Size of output array(the larger, the finer)

Func<double, double, double> f

ode function

Return
Double[]

approximations

Vector`1[] FourthOrder(Vector<T> y0, double start, double end, int N, Func<double, Vector<double>, Vector<double>> f)

Fourth Order Runge-Kutta to solve ODE SYSTEM
Parameters
Vector<T> y0

initial vector

double start

start time

double end

end time

int N

Size of output array(the larger, the finer)

Func<double, Vector<double>, Vector<double>> f

ode function

Return
Vector`1[]

approximations

Double[] SecondOrder(double y0, double start, double end, int N, Func<double, double, double> f)

Second Order Runge-Kutta method
Parameters
double y0

initial value

double start

start time

double end

end time

int N

Size of output array(the larger, the finer)

Func<double, double, double> f

ode function

Return
Double[]

approximations

Vector`1[] SecondOrder(Vector<T> y0, double start, double end, int N, Func<double, Vector<double>, Vector<double>> f)

Second Order Runge-Kutta to solve ODE SYSTEM
Parameters
Vector<T> y0

initial vector

double start

start time

double end

end time

int N

Size of output array(the larger, the finer)

Func<double, Vector<double>, Vector<double>> f

ode function

Return
Vector`1[]

approximations