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

            Assert.Equal(ComplexExtensions.Acosh(complex), result);
            Assert.Equal(1.9686379257930964, result.Real, 15);
            Assert.Equal(0.606137822387294, result.Imaginary, 15);
        }
Beispiel #2
0
        public void ExecuteTest()
        {
            var exp = new Arcosh(new Number(1));

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