示例#1
0
        static void SolveOnePoint(double tInit, double[] yInit, 
            double epsilon, double delta, 
            double timePeriod, double timeStep)
        {
            var rk4 = new GravitationalMomentEquations(epsilon, delta);
            rk4.SetInit(tInit, yInit);

            while (rk4.GetTime() < timePeriod)
            {
                //rk4.Y
                rk4.NextStep(timeStep);
            }
        }
示例#2
0
        static void SolveOnePoint(double tInit, double[] yInit,
                                  double epsilon, double delta,
                                  double timePeriod, double timeStep)
        {
            var rk4 = new GravitationalMomentEquations(epsilon, delta);

            rk4.SetInit(tInit, yInit);

            while (rk4.GetTime() < timePeriod)
            {
                //rk4.Y
                rk4.NextStep(timeStep);
            }
        }