public void TestAtanh(long x, long expected) { var result = BitConverter.DoubleToInt64Bits(MathEx.Atanh(BitConverter.Int64BitsToDouble(x))); var delta = Math.Abs(expected - result); if (delta > 2) { Assert.Fail($"result={result}, expected={expected}, delta={delta}"); } else { Assert.IsTrue(true); } }