Ejemplo n.º 1
0
        private static void testBookError()
        {
            Poly4 poly = new Poly4(
                new Complex(-2, -2),
                new Complex(1.5, -0.5),
                new Complex(0, 0.25),
                new Complex(0, 0),
                new Complex(0.75, -1.75));

            poly.solve();
            poly.check();
            poly.print();
        }
Ejemplo n.º 2
0
        private static void testBook()
        {
            Poly4 poly = new Poly4(
                new Complex(1, 0),
                new Complex(6, 0),
                new Complex(-8, 0),
                new Complex(-22, 0),
                new Complex(-105, 0));

            poly.solve();
            poly.check();
            poly.print();
        }
Ejemplo n.º 3
0
        private static void test2b()
        {
            Poly4 poly = new Poly4(
                new Complex(1.5, 0),
                new Complex(2.1, 0),
                new Complex(-1.2, 0),
                new Complex(-1.6, 0),
                new Complex(2.5, 0));

            poly.solve();
            poly.check();
            poly.print();

            /*
             * x = 0.68570649639504676818 - 0.51544340371595721844· ∨ x = 0.68570649639504676818 + 0.51544340371595721844· ∨ x = -1.3857064963948774975 - 0.58710645620335704451· ∨ x = -1.3857064963948774975 + 0.58710645620335704451·
             */
        }
Ejemplo n.º 4
0
        private static void test2a()
        {
            Poly4 poly = new Poly4(
                new Complex(1.5, -0.5),
                new Complex(2.1, 0.5),
                new Complex(-1.2, -0.4),
                new Complex(-1.6, 0.4),
                new Complex(2.5, 0.2));

            /*x = -1.5031210042193886368 - 1.1996324925961071257· ∨
             * x = 0.75088813963150753935 - 0.49378327420458781439· ∨ x = 0.62146832688363632989 + 0.53592730551193332322·
             * x = -1.0292354622962654483 + 0.43748846128867246989·*/
            poly.solve
                ();
            poly.check();
            poly.print();
        }