Example #1
0
        public static void Main(string[] args)
        {
            var poly1 = new Polynomial2(1, 2, 1);
            var poly2 = poly1 * 5;

            Console.WriteLine(poly1.Value(1));
            Console.WriteLine(poly2.Value(1));
            Console.WriteLine(poly1 % poly2);
            poly2 -= new Polynomial2(0, 1, 0);
            Console.WriteLine(poly1 % poly2);
        }
Example #2
0
 public Polynomial2(Polynomial2 another) : this(another.A, another.B, another.C)
 {
 }