Click or drag to resize
OdeRungeKuttaSolve Method
Integrates the ODE system from t to tEnd.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public virtual void Solve(
	double t,
	double tEnd,
	double[] y
)

Parameters

t
Type: SystemDouble
A double specifying the independent variable.
tEnd
Type: SystemDouble
A double specifying the value of t at which the solution is desired.
y
Type: SystemDouble
On input, a double array containing the initial values. On output, a double array containing the approximate solution.
Exceptions
ExceptionCondition
DidNotConvergeExceptionis thrown if the number of internal steps exceeds MaxSteps (default 500). This can be an indication that the ODE system is stiff. This exception can also be thrown if the error tolerance condition could not be met.
ToleranceTooSmallExceptionis thrown if the computation does not converge on some step.
Remarks
On all but the first call to Solve, the value of t must equal the value of tEnd from the previous call.
See Also