| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix Solve(
Func<double, DoubleVector, DoubleVector> odeFunction,
DoubleVector timeSpan,
DoubleVector y0
)
Public Function Solve (
odeFunction As Func(Of Double, DoubleVector, DoubleVector),
timeSpan As DoubleVector,
y0 As DoubleVector
) As DoubleMatrix
public:
DoubleMatrix^ Solve(
Func<double, DoubleVector^, DoubleVector^>^ odeFunction,
DoubleVector^ timeSpan,
DoubleVector^ y0
)
member Solve :
odeFunction : Func<float, DoubleVector, DoubleVector> *
timeSpan : DoubleVector *
y0 : DoubleVector -> DoubleMatrix
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
DoubleMatrixA 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