diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-03-08 20:31:30 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-03-08 20:31:30 +0000 |
commit | 41be2e359b862c3388b5816be7649367b476f0dd (patch) | |
tree | 39be4d118ee5289c53fca017a06683d47fae7726 /numpy/core | |
parent | 090ce2ad88f775ad0bdc009061457c1ff8b40b74 (diff) | |
download | numpy-41be2e359b862c3388b5816be7649367b476f0dd.tar.gz |
Make printout of precision test fail more informative.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/tests/test_umath.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 0090d0412..83dbc84cb 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -439,16 +439,16 @@ class TestComplexFunctions(object): def check(x, rtol): d = np.absolute(np.arcsinh(x)/np.arcsinh(x+0j).real - 1) - assert np.all(d < rtol), (x[np.argmax(d)], d.max()) + assert np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max()) d = np.absolute(np.arcsinh(x)/np.arcsin(1j*x).imag - 1) - assert np.all(d < rtol), (x[np.argmax(d)], d.max()) + assert np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max()) d = np.absolute(np.arctanh(x)/np.arctanh(x+0j).real - 1) - assert np.all(d < rtol), (x[np.argmax(d)], d.max()) + assert np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max()) d = np.absolute(np.arctanh(x)/np.arctan(1j*x).imag - 1) - assert np.all(d < rtol), (x[np.argmax(d)], d.max()) + assert np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max()) # The switchover was chosen as 1e-3; hence there can be up to # ~eps/1e-3 of relative cancellation error before it |