Skip to content

Commit fe70c38

Browse files
committed
dont remove rtol
1 parent 006f70b commit fe70c38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

quaddtype/tests/test_quaddtype.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ def test_hyperbolic_functions(op, val):
592592

593593
# For finite non-zero results
594594
# Use relative tolerance for exponential functions due to their rapid growth
595+
rtol = 1e-13 if abs(float_result) < 1e100 else 1e-10
596+
np.testing.assert_allclose(float(quad_result), float_result, rtol=rtol, atol=1e-15,
597+
err_msg=f"Value mismatch for {op}({val})")
595598
# Check sign for zero results
596599
if float_result == 0.0:
597600
assert np.signbit(float_result) == np.signbit(

0 commit comments

Comments
 (0)