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

            Assert.Equal(ComplexExtensions.Csch(complex), result);
            Assert.Equal(-0.041200986288574125, result.Real, 15);
            Assert.Equal(-0.090473209753207426, result.Imaginary, 15);
        }
Ejemplo n.º 2
0
        public void ExecuteTest()
        {
            var exp = new Csch(new Number(1));

            Assert.Equal(MathExtensions.Csch(1), exp.Execute());
        }