示例#1
0
        static void Main(string[] args)
        {
            Polinomials p  = new Polinomials(new double[] { 1, 0, 1, 0, -3, -3, 8, 2, -5 });
            Polinomials p1 = new Polinomials(new double[] { 3, 0, 5, 0, -4, -9, 21 });

            Console.WriteLine(p *= p1);
        }
示例#2
0
        public static Polinomials operator -(Polinomials a, Polinomials b)
        {
            Polinomials newB = new Polinomials(b._numbers.Select(x => - x).ToArray());

            return(a + newB);
        }