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