public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16623] New: cos change of behavior in 2.19 causes scipy testfailures
@ 2014-02-21 20:40 jtaylor.debian at googlemail dot com
  2014-02-21 22:30 ` [Bug math/16623] " jsm28 at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: jtaylor.debian at googlemail dot com @ 2014-02-21 20:40 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16623
           Summary: cos change of behavior in 2.19 causes scipy
                    testfailures
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jtaylor.debian at googlemail dot com
                CC: drepper.fsp at gmail dot com

#include <math.h>
#include <stdio.h>
int main()
{
  double x= 4831921577.4601803;
  printf("%.15g\n", sin(x));
  printf("%.15g\n", cos(x));
}


in glibc 2.18:

gcc test.c -lm && ./a.out 
-0.918193578775631
-0.396131987972694

while 2.19 has the sign of the cosinus has changed:
gcc test.c -lm && ./a.out 
-0.918193578775631
0.396131987972694

I can't judge if that is within the allowed accuracy of libc but it is causing
wrong results in funpack used for special functions in python-scipy.

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


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

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

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-21 20:40 [Bug libc/16623] New: cos change of behavior in 2.19 causes scipy testfailures jtaylor.debian at googlemail dot com
2014-02-21 22:30 ` [Bug math/16623] " jsm28 at gcc dot gnu.org
2014-02-22  2:52 ` bugdal at aerifal dot cx
2014-02-24  2:34 ` siddhesh at redhat dot com
2014-02-27 15:49 ` cvs-commit at gcc dot gnu.org
2014-02-27 16:01 ` cvs-commit at gcc dot gnu.org
2014-02-27 16:05 ` siddhesh at redhat dot com
2014-03-04 18:24 ` jtaylor.debian at googlemail dot com
2014-03-14 12:40 ` schwab@linux-m68k.org
2014-03-14 13:36 ` alduc1 at free dot fr
2014-03-14 13:57 ` siddhesh at redhat dot com
2014-03-14 14:15 ` alduc1 at free dot fr
2014-03-14 14:51 ` alduc1 at free dot fr
2014-03-14 15:01   ` Ondřej Bílka
2014-03-14 15:02 ` neleai at seznam dot cz
2014-03-14 15:38 ` schwab@linux-m68k.org
2014-03-14 17:24 ` joseph at codesourcery dot com
2014-06-13  6:34 ` fweimer at redhat dot com
2014-06-14 23:32 ` cvs-commit at gcc dot gnu.org

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