Exemple #1
0
        public void ExecuteComplexNumberTest()
        {
            var complex = new Complex(3, 2);
            var exp = new Arsinh(new ComplexNumber(complex));
            var result = (Complex)exp.Execute();

            Assert.Equal(ComplexExtensions.Asinh(complex), result);
            Assert.Equal(1.983387029916535432347076, result.Real, 15);
            Assert.Equal(0.5706527843210994007, result.Imaginary, 15);
        }
Exemple #2
0
        public void ExecuteTest()
        {
            var exp = new Arsinh(new Number(1));

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