From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18286 invoked by alias); 28 Feb 2012 14:04:32 -0000 Received: (qmail 18262 invoked by uid 22791); 28 Feb 2012 14:04:30 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Feb 2012 14:04:18 +0000 From: "vincent-srcware at vinc17 dot net" To: glibc-bugs@sources.redhat.com Subject: [Bug math/706] pow() produces inaccurate results for base ~ 1.0, and large exponent on 32-bit x86 Date: Tue, 28 Feb 2012 14:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-srcware at vinc17 dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00528.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D706 --- Comment #12 from Vincent Lef=C3=A8vre 2012-02-28 14:03:00 UTC --- (In reply to comment #11) > What I proposed is just an easy workaround which can be easily and quickly > implemented (and it would improve the actual results). I'm not sure that improving the code for integer exponents only would be a = good idea. A consequence would be that the f(x) =3D pow(a,x) implementation woul= d be completely non-monotonous (with important differences near the integer inpu= ts), with possible bad side effects on some codes. > About the char in the C code: it is just used for its sign (+/- 1) not fo= r its > value. But a sign is part of the value. On platforms where char is unsigned, a char value cannot have a negative sign. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.