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/11521] Ctanh Returns Incorrect Values


------- 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.


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