[Numpy-discussion] Branch cuts, inf, nan, C99 compliance

Robert Kern robert.kern at gmail.com
Sun Jul 20 04:42:45 EDT 2008


On Sun, Jul 20, 2008 at 03:34, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> What architecture and OS?

I get the following on OS X 10.5.3 Intel Core 2 Duo:

======================================================================
FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (-0.0, -0.0), (-inf,
-0.0), 'divide')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/Users/rkern/svn/numpy/numpy/core/tests/test_umath.py", line
394, in _check
    assert got == expected, (got, expected)
AssertionError: ('(-inf, 3.1415926535897931)', '(-inf, 0.0)')

======================================================================
FAIL: test_umath.TestC99.test_csqrt(<ufunc 'sqrt'>, (-inf, 1.0),
(-0.0, inf), '')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py",
line 182, in runTest
    self.test(*self.arg)
  File "/Users/rkern/svn/numpy/numpy/core/tests/test_umath.py", line
394, in _check
    assert got == expected, (got, expected)
AssertionError: ('(0.0, inf)', '(-0.0, inf)')

----------------------------------------------------------------------
Ran 1887 tests in 7.716s

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco



More information about the NumPy-Discussion mailing list