Click or drag to resize

MultiFunctionMath.IntegrateConservativeOde Method (Func<Double, IReadOnlyList<Double>, IReadOnlyList<Double>>, Double, IReadOnlyList<Double>, IReadOnlyList<Double>, Double)

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

Namespace:  Meta.Numerics.Analysis
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static MultiOdeResult IntegrateConservativeOde(
	Func<double, IReadOnlyList<double>, IReadOnlyList<double>> rhs,
	double x0,
	IReadOnlyList<double> y0,
	IReadOnlyList<double> yPrime0,
	double x1
)

Parameters

rhs
Type: System.Func<Double, IReadOnlyList<Double>, IReadOnlyList<Double>>
The right hand side function.
x0
Type: System.Double
The initial value of the independent variable.
y0
Type: System.Collections.Generic.IReadOnlyList<Double>
The initial values of the functions.
yPrime0
Type: System.Collections.Generic.IReadOnlyList<Double>
The initial values of the functions' derivatives.
x1
Type: System.Double
The final value of the independent variable.

Return Value

Type: MultiOdeResult
The solution, including the final value of the functions and their derivatives.
Exceptions
ExceptionCondition
ArgumentNullExceptionrhs, y0, or yPrime0 is null.
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.
Remarks
See Also