예제 #1
0
        private static void FactorisationTest1()
        {
            var _GF2   = new ZnRing(2);
            var _pring = new Rx <long, ZnRing>(_GF2);
            var p      = new Polynom <long, ZnRing>(_GF2, new long[] { 1, 1, 1, 1, 0, 1, 1 });

            Console.WriteLine(p);

            var _res  = p.Factorisation();
            var _prod = new Polynom <long, ZnRing>(_GF2, new long[] { 1 });

            foreach (var _pp in _res)
            {
                _prod = _pring.Prod(_prod, _pp);
                Console.WriteLine(_pp);
            }

            Console.WriteLine(_prod);
        }