[Numpy-discussion] Corner case complex log error.

Robert Kern robert.kern@gmail....
Tue Jul 22 15:13:09 CDT 2008


On Tue, Jul 22, 2008 at 14:57, Pauli Virtanen <pav@iki.fi> wrote:
> Tue, 22 Jul 2008 00:34:46 -0600, Charles R Harris wrote:
>>
>> FAIL: test_umath.TestC99.test_clog(<ufunc 'log'>, (-0.0, -0.0), (-inf,
>> -0.0), 'divide')
>> AssertionError: ('(-inf, 3.1415926535897931)', '(-inf, 0.0)')
>
> The interesting thing is that there is no test like this
> in test_umath.py. The closest thing is the second test in test_clog,
> which is (+0., 0.), (-inf, 0.). Does this vanish if you comment it out?

I think it's a weirdness in the way that Python can handle literals in
the same statement.

>>> (-0.0, 0.0)
(-0.0, -0.0)

-- 
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