Пример #1
0
        public void TestAsinh(long x, long expected)
        {
            var result = BitConverter.DoubleToInt64Bits(MathEx.Asinh(BitConverter.Int64BitsToDouble(x)));
            var delta  = Math.Abs(expected - result);

            if (delta > 1)
            {
                Assert.Fail($"result={result}, expected={expected}, delta={delta}");
            }
            else
            {
                Assert.IsTrue(true);
            }
        }