From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18341 invoked by alias); 29 Apr 2013 16:25:58 -0000 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 Received: (qmail 18300 invoked by uid 48); 29 Apr 2013 16:25:54 -0000 From: "jsm28 at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug math/15416] New: catan, catanh inaccuracy from atan2 Date: Mon, 29 Apr 2013 16:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org 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: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00232.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15416 Bug #: 15416 Summary: catan, catanh inaccuracy from atan2 Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: math AssignedTo: unassigned@sourceware.org ReportedBy: jsm28@gcc.gnu.org Classification: Unclassified When catan computes __real__ res = 0.5 * __ieee754_atan2 (2.0 * __real__ x, den), the value of den may be inaccurate when close to 0, resulting in an inaccurate real part of the result when __real__ x is also small. For example, catan (0x1p-27 + 1.0i) gives a result with real part 0.785398163397448279 on x86_64, which is only accurate to 8 decimal places, about half the precision expected (the exact value is 0.785398165260093458846617868453411006955...). The same applies to catanh. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.