FunctionMathIntegrateOde(FuncDouble, Double, Double, Double, Double, Double) Method

Solves an ordinary differential equation initial value problem.

Definition

Namespace: Meta.Numerics.Analysis
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static OdeResult IntegrateOde(
	Func<double, double, double> rhs,
	double x0,
	double y0,
	double x1
)

Parameters

rhs  FuncDouble, Double, Double
The right hand side function, which returns the value of the derivative given the values of the independent variable and the function.
x0  Double
The initial value of the independent variable.
y0  Double
The initial value of the function.
x1  Double
The final value of the independent variable.

Return Value

OdeResult
The solution, including the final value of the function and its derivative.

Remarks

For information on integrating ODEs, see IntegrateOde(FuncDouble, Double, Double, Double, Double, Double, OdeSettings).

This overload uses default values for precision and evaluation budget. It targets a relative precision of about 10-12 and an absolute precision of about 10-24, with an evaluation budget of about 8000.

Exceptions

ArgumentNullExceptionThe rhs is null.
NonconvergenceExceptionThe ODE could not be integrated to the required precision before exhausting the maximum allowed number of rhs evaluations.

See Also