This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Interaction between rounding direction and trigonometric functions
- From: "Ryan Arnold" <ryan dot arnold at gmail dot com>
- To: "Pete Eberlein" <eberlein at linux dot vnet dot ibm dot com>
- Cc: libc-help at sourceware dot org
- Date: Fri, 5 Sep 2008 15:07:21 -0500
- Subject: Re: Interaction between rounding direction and trigonometric functions
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HE2i2TDVmF4iySIW0uZkst6dYPadNgIYQ3oShPgCyMg=; b=QOY+GxL7lt57bsEMz/wtVs4sFZSweLNbUhCIvt4Z4kAq7PagbG5e3k3QtlZR2M/2xz IirOKBmAO8VPSLWm5Cw+sgUKg73ahiDNEMm8NUgQ9sPzbZsrQC9rw/C+DdgKVjfQmySL i1hAaJhtFIMa82BuBdPj+wGuAxRaZnbxiRjUQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=am1z0To4F93EaNOtWlvAhFFA8nCSl/tVXngG5Wa9komrZvYqqEiOkt9hJnRBJPPKSz m6kKKKBxaAzDRDaUcSWr5XmR+YLBFDgsHeljLthZyfBcEVoZec2bWTw0qLc64nbt0RvU ESqG1BsBfw7OQXD24B23OtKEpEaB6OGcGOJhE=
- References: <48C16C86.80203@cs.unipr.it> <ff4da150809051143u20cee1b1w8815a0ed4c30bae1@mail.gmail.com> <1220643964.25363.11.camel@eberlein-desktop>
Pete,
Would you please update the bugzilla to indicate the results you found as well?
On Fri, Sep 5, 2008 at 2:46 PM, Pete Eberlein
<eberlein@linux.vnet.ibm.com> wrote:
> On Fri, 2008-09-05 at 13:43 -0500, Ryan Arnold wrote:
>
>> Did you address some issues in the GLIBC bugzilla regarding rounding direction?
>
> The issue I looked at was for printf checking rounding mode:
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=5044
>
> This issue with cos appears to be unrelated. I didn't find any bugs on
> http://sources.redhat.com/bugzilla/ searching for "round cos". This
> looks like a candidate for a new bug.
>
> Also, here are the results for SLES10 SP1, Power6, using Advance
> Toolchain GLIBC 2.8, GCC 4.3.1, again very wrong:
>
> theta = 5.27906
> sin(theta) = -0.843695
> cos(theta) = 0.536822
> Repeating after setting the rounding direction to UPWARD:
> theta = 5.27906
> sin(theta) = -0.0702948
> cos(theta) = 9.55255
>
> --
> Pete Eberlein
> IBM Linux Technology Center
> Linux for Power Toolchain
>
>
>