NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/51427: libm issues triggered by py-numpy



On Tue, Aug 30, 2016 at 12:00:02PM +0000, coypu%SDF.ORG@localhost wrote:
>  for example, creal(0+I*INFINITY) = NAN. I expected 0.

The problem here is not so much creal(), but the construction of the
complex number itself. For C11, we should support CMPLX and friends that
directly take real and imaginary part as argument, but for C99 and
before you have to construct them separately via the __real__ and
__imag__ builtins, I think.

Joerg


Home | Main Index | Thread Index | Old Index