Click or drag to resize

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

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  FuncDouble, DoubleVector, DoubleVector
A delegate which evaluates the right hand side of the differential equations.
timeSpan  DoubleVector
A vector specifying the interval of integration and the values at which to perform the integration steps.
y0  DoubleVector
Initial value for problem. It is the value of the unknown function y at the initial time value timeSpan[0].

Return Value

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