public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/13837] New: Trig functions experience catastrophic precision loss at large argument magnitudes
@ 2012-03-13  3:22 bugdal at aerifal dot cx
  2012-03-15 13:32 ` [Bug math/13837] " aj at suse dot de
  2014-06-13 14:07 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: bugdal at aerifal dot cx @ 2012-03-13  3:22 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13837

             Bug #: 13837
           Summary: Trig functions experience catastrophic precision loss
                    at large argument magnitudes
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: bugdal@aerifal.cx
    Classification: Unclassified


On x86, glibc's sin(0x1p1023) returns:
-0.633004553570852834809556952677667140960693359375

The correct value (rounded to double precision, within 1ulp) is:
0.563127779850884024881452205590903759002685546875

Or, rounded to the DBL_DIG digits (15):
0.563127779850884

In case there's any doubt as to the true value, it agrees with Wolfram Alpha's
estimate of sin(2^1023), which is:
0.5631277798508840134529434079444683477103854907361251

Source:
http://www.wolframalpha.com/input/?i=sin%282%5E1023%29

Apparently glibc's trig functions are failing to perform argument reduction in
any sane way...

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug math/13837] Trig functions experience catastrophic precision loss at large argument magnitudes
  2012-03-13  3:22 [Bug math/13837] New: Trig functions experience catastrophic precision loss at large argument magnitudes bugdal at aerifal dot cx
@ 2012-03-15 13:32 ` aj at suse dot de
  2014-06-13 14:07 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: aj at suse dot de @ 2012-03-15 13:32 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13837

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aj at suse dot de
         Resolution|                            |DUPLICATE

--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2012-03-15 13:31:20 UTC ---
This is a duplicate of bug#13658. I'll add your test case to the testsuite.

*** This bug has been marked as a duplicate of bug 13658 ***

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug math/13837] Trig functions experience catastrophic precision loss at large argument magnitudes
  2012-03-13  3:22 [Bug math/13837] New: Trig functions experience catastrophic precision loss at large argument magnitudes bugdal at aerifal dot cx
  2012-03-15 13:32 ` [Bug math/13837] " aj at suse dot de
@ 2014-06-13 14:07 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 14:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13837

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-13 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13  3:22 [Bug math/13837] New: Trig functions experience catastrophic precision loss at large argument magnitudes bugdal at aerifal dot cx
2012-03-15 13:32 ` [Bug math/13837] " aj at suse dot de
2014-06-13 14:07 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).