diff --git a/pystencils_tests/test_math_functions.py b/pystencils_tests/test_math_functions.py index 4cbfbc3c09a4d4d9409789288587e6ae5ede24d2..031e2320bc1ca0063168bc4c20ccf5642df875e7 100644 --- a/pystencils_tests/test_math_functions.py +++ b/pystencils_tests/test_math_functions.py @@ -63,4 +63,5 @@ def test_single_arguments(dtype, func, target): dh.run_kernel(kernel) dh.all_to_cpu() - np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0).evalf())) + np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0).evalf()), + rtol=10**-3 if dtype == 'float32' else 10**-5)