This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13381] rounding problem wih sincosl
- From: "gastineau at imcce dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 07 Nov 2011 16:17:24 +0000
- Subject: [Bug math/13381] rounding problem wih sincosl
- Auto-submitted: auto-generated
- References: <bug-13381-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13381
gastineau at imcce dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gastineau at imcce dot fr
--- Comment #1 from gastineau at imcce dot fr 2011-11-07 16:17:24 UTC ---
The correct source code is :
#define _GNU_SOURCE
#include <math.h>
#include <stdio.h>
int main()
{
long double X=0xd.96c3941c1094ed5p-7L;
long double C=cosl(X);
long double S=sinl(X);
long double C1, S1;
sincosl(X, &S1, &C1);
printf("diffC=%Le C1=%La C=%La\n", C1-C, C1, C);
printf("diffS=%Le S1=%La S=%La\n", S1-S, S1, S);
return 0;
}
--
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.