On Thu, Oct 29, 2009 at 8:35 PM, Robert Kern <[email protected]> wrote:
> On 2009-10-29 18:22 PM, Lisandro Dalcin wrote:
>> Sorry for the late reply..
>>
>> On Wed, Oct 28, 2009 at 4:13 AM, Stefan Behnel<[email protected]>  wrote:
>>> Hi,
>>>
>>> most of the 'complex' tests currently fail in Py3.1 because
>>> complex.__repr__() became more correct. It now prints (-0-2j) for -(2j).
>>
>> Are you sure this is "more correct" ? What's the point of printing a
>> "0" for the real part? I really do not know what's going on there...
>
> +0 and -0 are different in IEEE floating point representation. It is 
> information
> that should be preserved particularly since signed zeros are more important 
> with
> complex numbers than reals because of branch cuts.
>

Of course!!! I just did not play attention that the "0" had a minus!
Sorry for the noise... These "-0" make perfect sense...



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to