public void FirstDerivativeTest_Analytical() { //arrange CPolynomial target = new CPolynomial(new Complex[] { 5, 8, -14, 3, 6, -22 }); CPolynomial expected = new CPolynomial(new Complex[] { 8, -28, 9, 24, -110 }); //action CPolynomial actual = target.FirstDerivative(); //assert actual.Should().Be(expected); }
public void FirstDerivativeTest() { //arrange CPolynomial target = new CPolynomial(new Complex[] { 5, 8, -14, 3, 6, -22 }); Complex value = 3; Complex expected = -8257; //action Complex actual = target.FirstDerivative(value); //assert actual.Should().Be(expected); }
public void FirstDerivativeTest() { //arrange CPolynomial target = new CPolynomial(new Complex[] {5, 8, -14, 3, 6, -22}); Complex value = 3; Complex expected = -8257; //action Complex actual = target.FirstDerivative(value); //assert actual.Should().Be(expected); }
public void FirstDerivativeTest_Analytical() { //arrange CPolynomial target = new CPolynomial(new Complex[] { 5, 8, -14, 3, 6, -22 }); CPolynomial expected = new CPolynomial(new Complex[] {8, -28, 9, 24, -110}); //action CPolynomial actual = target.FirstDerivative(); //assert actual.Should().Be(expected); }