MultiFunctionMathIntegrateConservativeOde(FuncDouble, IReadOnlyListDouble, IReadOnlyListDouble, Double, IReadOnlyListDouble, IReadOnlyListDouble, Double) Method

Solves a set of coupled, conservative second order ordinary differential equation initial value problems.

Definition

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

Parameters

rhs  FuncDouble, IReadOnlyListDouble, IReadOnlyListDouble
The right hand side function.
x0  Double
The initial value of the independent variable.
y0  IReadOnlyListDouble
The initial values of the functions.
yPrime0  IReadOnlyListDouble
The initial values of the functions' derivatives.
x1  Double
The final value of the independent variable.

Return Value

MultiOdeResult
The solution, including the final value of the functions and their derivatives.

Remarks

For information on integrating coupled, conservative ODEs, see IntegrateConservativeOde(FuncDouble, IReadOnlyListDouble, IReadOnlyListDouble, Double, IReadOnlyListDouble, IReadOnlyListDouble, Double, MultiOdeSettings).

This overload uses default settings 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

ArgumentNullExceptionrhs, y0, or yPrime0 is .
DimensionMismatchExceptiony0 and yPrime0 do not have the same dimension.
NonconvergenceExceptionThe ODE could not be integrated to the required precision before exhausting the maximum allowed number of rhsevaluations.

See Also