public void ExecuteTest2() { var exp = new Abs(new ComplexNumber(4, 2)); Assert.Equal(Complex.Abs(new Complex(4, 2)), exp.Execute()); }
public void ExecuteTest3() { var exp = new Abs(new Vector(new IExpression[] { new Number(5), new Number(4), new Number(6), new Number(7) })); Assert.Equal(11.2249721603218241567, (double)exp.Execute(), 15); }
public void ExecuteTest1() { var exp = new Abs(new Number(-1)); Assert.Equal(1.0, exp.Execute()); }