Beispiel #1
0
        public void Level3_PolynomDegree()
        {
            var a1 = new Polynom()
            {
                coefficients = new double[] { 5, 8 }
            };

            var a3 = m.Degree(a1, 3);

            Assert.IsTrue(
                a3.coefficients[0] == 125 &&
                a3.coefficients[1] == 600 &&
                a3.coefficients[2] == 960 &&
                a3.coefficients[3] == 512);
        }