Integrates the ODE system from t to tEnd.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual void Solve( double t, double tEnd, double[] y ) |
Visual Basic (Declaration) |
---|
Public Overridable Sub Solve ( _ t As Double, _ tEnd As Double, _ y As Double() _ ) |
Visual C++ |
---|
public: virtual void Solve( double t, double tEnd, array<double>^ y ) |
Parameters
- t
- Type: System..::.Double
A double specifying the independent variable.
- tEnd
- Type: System..::.Double
A double specifying the value of t at which the solution is desired.
- y
- Type: array<
System..::.Double
>[]()[]
On input, a double array containing the initial values. On output, a double array containing the approximate solution.
Remarks
On all but the first call to Solve, the value of t must
equal the value of tEnd from the previous call.
Exceptions
Exception | Condition |
---|---|
Imsl.Math..::.DidNotConvergeException | is 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. |
Imsl.Math..::.ToleranceTooSmallException | is thrown if the computation does not converge on some step. |
Imsl.Math..::.MaxFcnEvalsExceededException | is thrown if the maximum number of function evaluations allowed has been exceeded. |
Imsl.Math..::.SingularMatrixException | is thrown if the factorization function encounters a singular matrix during LU decomposition. |