From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24730 invoked by alias); 7 Nov 2011 16:18:08 -0000 Received: (qmail 24644 invoked by uid 22791); 7 Nov 2011 16:18:00 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 16:17:48 +0000 From: "gastineau at imcce dot fr" To: glibc-bugs@sources.redhat.com Subject: [Bug math/13381] rounding problem wih sincosl Date: Mon, 07 Nov 2011 16:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gastineau at imcce dot fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aj at suse dot de X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00011.txt.bz2 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 #include 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.