public void AntiderivativeTest()
        {
            //arrange
            CPolynomial target = new CPolynomial(new Complex[] { 3, 8, 16 });
            CPolynomial expected = new CPolynomial(new Complex[] { 0, 3, 4, 16.0 / 3 });

            //action
            CPolynomial actual = target.Antiderivative();

            //assert
            actual.Should().Be(expected);
        }
Beispiel #2
0
        public void AntiderivativeTest()
        {
            //arrange
            CPolynomial target   = new CPolynomial(new Complex[] { 3, 8, 16 });
            CPolynomial expected = new CPolynomial(new Complex[] { 0, 3, 4, 16.0 / 3 });

            //action
            CPolynomial actual = target.Antiderivative();

            //assert
            actual.Should().Be(expected);
        }
        public override object Evaluate()
        {
            CPolynomial poly = SubExpression.EvaluateAsCPolynomial();

            return(new CMatrix(poly.Antiderivative().ToArray()));
        }