|FunctionMathIntegrateOde Method (FuncDouble, Double, Double, Double, Double, Double, OdeEvaluationSettings)|
public static OdeResult IntegrateOde( Func<double, double, double> rhs, double x0, double y0, double x1, OdeEvaluationSettings settings )
Public Shared Function IntegrateOde ( rhs As Func(Of Double, Double, Double), x0 As Double, y0 As Double, x1 As Double, settings As OdeEvaluationSettings ) As OdeResult
public: static OdeResult^ IntegrateOde( Func<double, double, double>^ rhs, double x0, double y0, double x1, OdeEvaluationSettings^ settings )
static member IntegrateOde : rhs : Func<float, float, float> * x0 : float * y0 : float * x1 : float * settings : OdeEvaluationSettings -> OdeResult
An ordinary differential equation (ODE) has the form:
The function specifying the derivative as a function of x and y is called the right-hand-side (RHS).
The integration of an ODE consists of specifying the value of y at some initial x and computing its value at a different x in accordance with the differential equation. The terms "initial" and "final" are derived from the common case where the indepdent variable is time, but the technique applies whether the independent variable repsents a time, a location, or a completely non-physical quantity, as long as the problem has the form of an ODE.
ODEs involving multiple, coupled dependent variables can be integrated using the IntegrateOde(FuncDouble, IListDouble, IListDouble, Double, IListDouble, Double, MultiOdeEvaluationSettings) method. Higher order ODEs can be integrated by representing them as coupled ODEs in which the zeroth component is the desired y, the first component is y', the second component is y'', etc. So-called conservative second order ODEs should be integrated using the IntegrateConservativeOde(FuncDouble, Double, Double, Double, Double, Double, Double, OdeEvaluationSettings) method. If your ODE's RHS depends only on x, the problem reduces to a simple integral, which can be solved more rapidly and accurately using the Integrate(FuncDouble, Double, Interval, EvaluationSettings) method. Analytic techniques can also be used to reduce several other kinds of ODEs to simple integrals or lower-order ODEs.