This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/3866] pow(double, double) does not fulfil several of C99's requirements
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Aug 2008 05:48:09 -0000
- Subject: [Bug math/3866] pow(double, double) does not fulfil several of C99's requirements
- References: <20070112233054.3866.kreckel@ginac.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mtk dot manpages at gmail dot com 2008-08-08 05:48 -------
(In reply to comment #4)
> (In reply to comment #2)
> > 4) pow(-0, -1e100)
> >
> > this problem seems to be absent on glibc 2.8. There, pow(-0, -1e100) does
the
> > right thing, returning -Inf and giving EDOM/FE_DIVBYZERO.
> But the right thing to do would return +Inf and giving EDOM/FE_DIVBYZERO, as
> -1e100 is < 0 and not an odd integer (specified in. F.9.4.4, second dash.)
Oops. Yes, of course you are right. And glibc 2.8 is doing the right thing,
I just wrote the wrong thing. pow(-0, -1e100) gives +Inf with
EDOM/FE_DIVBYZERO.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3866
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.