Ejemplo n.º 1
0
        void simpleStep()
        {
            Console.WriteLine("x0 = " + x.X + " ; " + x.Y);
            Point x1 = AlphaMove.point(lab3.alpha(g1(x), x), g1(x), x);

            Console.WriteLine("x1 = " + x1.X + " ; " + x1.Y + "\nalpha = " + lab3.alpha(g1(x), x));
            x1 = AlphaMove.point(lab3.alpha(g1(x), x), g1(x), x);
            Console.WriteLine("x1 = " + x1.X + " ; " + x1.Y + "\nalpha = " + lab3.alpha(g1(x), x));
            x1 = AlphaMove.point(lab3.alpha(g1(x), x), g1(x), x);
            Console.WriteLine("x1 = " + x1.X + " ; " + x1.Y + "\nalpha = " + lab3.alpha(g1(x), x));
            x2 = AlphaMove.point(lab3.alpha(g2(x1), x1), g2(x1), x1);
            Console.WriteLine("x2 = " + x2.X + " ; " + x2.Y + "\nalpha = " + lab3.alpha(g2(x1), x1));
            force = new Point(x2.X - x.X, x2.Y - x.Y);
            x     = x2;
        }
Ejemplo n.º 2
0
 void forceStep()
 {
     x2 = AlphaMove.point(lab3.alpha(force, x), force, x);
     Console.WriteLine("x3 = " + x2.X + " ; " + x2.Y);
     Console.WriteLine("");
 }