This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/11521] Ctanh Returns Incorrect Values
- From: "jstorrs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Apr 2010 20:23:35 -0000
- Subject: [Bug math/11521] Ctanh Returns Incorrect Values
- References: <20100419174251.11521.tomdean@speakeasy.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tomdean at speakeasy dot org 2010-04-22 04:21 -------
Subject: Re: Ctanh Returns Incorrect Values
On Thu, 2010-04-22 at 03:51 +0000, jstorrs at gmail dot com wrote:
>
A patch to glibc-2.11.1
------- Additional Comments From tomdean at speakeasy dot org 2010-04-22 04:21 -------
Created an attachment (id=4746)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4746&action=view)
------- Additional Comments From jstorrs at gmail dot com 2010-04-22 20:23 -------
Created an attachment (id=4748)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4748&action=view)
C99 program that demonstrates the problem
Without the patch this is the output:
Expect: 1 0 Got: nan 0
Expect: 1 0 Got: nan 0
Expect: 1 0 Got: nan 0
Expect: -1 0 Got: nan 0
Expect: -1 0 Got: nan 0
Expect: -1 0 Got: nan 0
With the patch applied:
Expect: 1 0 Got: 1 0
Expect: 1 0 Got: 1 0
Expect: 1 0 Got: 1 0
Expect: -1 0 Got: -1 0
Expect: -1 0 Got: -1 0
Expect: -1 0 Got: -1 0
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11521
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.