This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/10709] New: sin() returns incorrect rounding
- From: "zimmerma+gcc at loria dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Sep 2009 12:50:53 -0000
- Subject: [Bug math/10709] New: sin() returns incorrect rounding
- Reply-to: sourceware-bugzilla at sourceware dot org
for the double precision number closest to 2.522464e-1, the glibc sin() function
returns 2.4957989804940914e-01 (when printed to 17 digits, which identifies
uniquely double-precision numbers), whereas the correct rounding to nearest is
2.4957989804940911e-01.
According to glibc/sysdeps/ieee754/dbl-64/s_sin.c, the result should be
always correctly rounded.
--
Summary: sin() returns incorrect rounding
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: zimmerma+gcc at loria dot fr
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-redhat-linux
GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=10709
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.