This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf
- From: "dhekir at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 09 Jul 2015 15:54:27 +0000
- Subject: [Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf
- Auto-submitted: auto-generated
- References: <bug-18647-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18647
--- Comment #1 from dhekir at gmail dot com ---
Some extra information:
- powf(x,y) returns 0 instead of +inf for approximately all of these values:
-0x1.000002p0 <= x <= -0x1.00000ep0
0x1p27 < y < +inf
- Although it only happens with powf() and in a very narrow range, one reason
why it is especially troublesome is that, for x < -1 and a large even y, the
result should be in the interval [1,+inf], and so the zero introduces a
discontinuity. And introducing zeros where none are expected could lead to some
(unlikely) division by zero errors...
--
You are receiving this mail because:
You are on the CC list for the bug.