This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/13381] rounding problem wih sincosl


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]