Click or drag to resize

RungeKutta5OdeSolverSolve(FuncDouble, Double, Double, DoubleVector, Double) 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 DoubleVector Solve(
	Func<double, double, double> odeFunction,
	DoubleVector timeSpan,
	double y0
)

Parameters

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

Return Value

DoubleVector
A vector containing the calculated solution the the points timeSpan. The ith element of this vector is the calculated solution at the point timeSpan[i].
See Also