Exemplo n.º 1
0
        public void ExecuteComplexNumberTest()
        {
            var complex = new Complex(3, 2);
            var exp = new Sinh(new ComplexNumber(complex));
            var result = (Complex)exp.Execute();

            Assert.Equal(Complex.Sinh(complex), result);
            Assert.Equal(-4.16890695996656435075, result.Real, 15);
            Assert.Equal(9.154499146911429573, result.Imaginary, 15);
        }
Exemplo n.º 2
0
        public void ExecuteTest()
        {
            var exp = new Sinh(new Number(1));

            Assert.Equal(Math.Sinh(1), exp.Execute());
        }