Click or drag to resize

RungeKutta5OdeSolverSolve Method (FuncDouble, DoubleVector, DoubleVector, DoubleVector, DoubleVector)

Solve the given initial value problem: y' = f(t,y) The step sequence is determined by timeSpan

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleMatrix Solve(
	Func<double, DoubleVector, DoubleVector> odeFunction,
	DoubleVector timeSpan,
	DoubleVector y0
)

Parameters

odeFunction
Type: SystemFuncDouble, DoubleVector, DoubleVector
A delegate which evaluates the right hand side of the differential equations.
timeSpan
Type: CenterSpace.NMath.CoreDoubleVector
A vector specifying the interval of integration and the values at which to perform the integration steps.
y0
Type: CenterSpace.NMath.CoreDoubleVector
Initial value for problem. It is the value of the unknown function y at the initial time value timeSpan[0].

Return Value

Type: DoubleMatrix
A matrix containing the calculated solution the the points timeSpan. The ith row of this matrix is the calculated solution at the point timeSpan[i].
See Also