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

Bug#182574: libc6: The pow() function gives incorrect results on special cases (nan, inf...)

Package: libc6
Version: 2.3.1-13
Severity: normal

I get the following results:

1) pow(-inf, nan) = inf
   The result should be nan (however, pow(inf, nan) is correct: nan).

2) pow(-inf, 0.5) = inf
   pow(-inf, -0.5) = 0
   The result should be nan in both cases.

3) pow(-1, inf) = 1
   pow(-1, -inf) = 1
   I think that the result should be nan in both cases.

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux ay 2.4.18-newpmac #1 Thu Mar 14 22:44:49 EST 2002 ppc  7410, altivec supported GNU/Linux

Versions of the packages libc6 depends on:
ii  libdb1-compat  2.1.3-7        The Berkeley database routines [glibc 2.0/2.

Reply to: