FunctionMathIntegrateConservativeOde Method (FuncDouble, Double, Double, Double, Double, Double, Double, OdeSettings)
public static OdeResult IntegrateConservativeOde( Func<double, double, double> rhs, double x0, double y0, double yPrime0, double x1, OdeSettings settings )
Public Shared Function IntegrateConservativeOde ( rhs As Func(Of Double, Double, Double), x0 As Double, y0 As Double, yPrime0 As Double, x1 As Double, settings As OdeSettings ) As OdeResult
public: static OdeResult^ IntegrateConservativeOde( Func<double, double, double>^ rhs, double x0, double y0, double yPrime0, double x1, OdeSettings^ settings )
static member IntegrateConservativeOde : rhs : Func<float, float, float> * x0 : float * y0 : float * yPrime0 : float * x1 : float * settings : OdeSettings -> OdeResult
A conservative ODE is an ODE of the form
where the right-hand-side depends only on x and y, not on the derivative y'. ODEs of this form are called conservative because they exhibit conserved quantities: combinations of y and y' that maintain the same value as the system evolves. Many forms of Newtonian equations of motion, for example, are conservative ODEs, with conserved quantities such as energy, momentum, and angular momentum. Our specialized conservative ODE integrator is not only more efficient for conservative ODEs, but does a better job of maintaining the conserved quantities.