[Numpy-svn] r6004 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Tue Nov 11 01:55:58 CST 2008


Author: charris
Date: 2008-11-11 01:55:54 -0600 (Tue, 11 Nov 2008)
New Revision: 6004

Modified:
   trunk/numpy/core/tests/test_umath.py
Log:
Make logaddexp just a bit more severe.

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-11-11 07:55:43 UTC (rev 6003)
+++ trunk/numpy/core/tests/test_umath.py	2008-11-11 07:55:54 UTC (rev 6004)
@@ -66,9 +66,9 @@
             assert_almost_equal(np.logaddexp2(xf, yf), zf, decimal=dec)
 
     def test_logaddexp2_range(self) :
-        x = [1000000., -1000000., 1000050., -1000050.]
-        y = [1000050., -1000050., 1000000., -1000000.]
-        z = [1000050., -1000000., 1000050., -1000000.]
+        x = [1000000., -1000000., 1000200., -1000200.]
+        y = [1000200., -1000200., 1000000., -1000000.]
+        z = [1000200., -1000000., 1000200., -1000000.]
         for dt in ['f','d','g'] :
             logxf = np.array(x, dtype=dt)
             logyf = np.array(y, dtype=dt)
@@ -107,9 +107,9 @@
             assert_almost_equal(np.logaddexp(xf, yf), zf, decimal=dec)
 
     def test_logaddexp_range(self) :
-        x = [1000000., -1000000., 1000050., -1000050.]
-        y = [1000050., -1000050., 1000000., -1000000.]
-        z = [1000050., -1000000., 1000050., -1000000.]
+        x = [1000000., -1000000., 1000200., -1000200.]
+        y = [1000200., -1000200., 1000000., -1000000.]
+        z = [1000200., -1000000., 1000200., -1000000.]
         for dt in ['f','d','g'] :
             logxf = np.array(x, dtype=dt)
             logyf = np.array(y, dtype=dt)



More information about the Numpy-svn mailing list