| RungeKutta5OdeSolverSolve(FuncDouble, DoubleVector, DoubleVector, DoubleVector, DoubleVector, RungeKutta5OdeSolverOptions) Method |
Solve the given initial value problem:
y' = f(t,y)
or
y' = M(t,y)*f(t,y)
for problems that involve a mass matrix M.
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,
RungeKutta5OdeSolverOptions solverOptions
)
Public Function Solve (
odeFunction As Func(Of Double, DoubleVector, DoubleVector),
timeSpan As DoubleVector,
y0 As DoubleVector,
solverOptions As RungeKutta5OdeSolverOptions
) As DoubleMatrix
public:
DoubleMatrix^ Solve(
Func<double, DoubleVector^, DoubleVector^>^ odeFunction,
DoubleVector^ timeSpan,
DoubleVector^ y0,
RungeKutta5OdeSolverOptions^ solverOptions
)
member Solve :
odeFunction : Func<float, DoubleVector, DoubleVector> *
timeSpan : DoubleVector *
y0 : DoubleVector *
solverOptions : RungeKutta5OdeSolverOptions -> 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 value
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].
- solverOptions RungeKutta5OdeSolverOptions
- Structure containing solver options including an
optional mass matrix.
Return Value
DoubleMatrixA matrix containing the calculated solution the the points
timeSpan.
The ith row of the matrix is the calculated solution at the point
timeSpan[i].
See Also