This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16623] New: cos change of behavior in 2.19 causes scipy testfailures
- From: "jtaylor.debian at googlemail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 21 Feb 2014 20:40:35 +0000
- Subject: [Bug libc/16623] New: cos change of behavior in 2.19 causes scipy testfailures
- Auto-submitted: auto-generated
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.