public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/3406] New: expf(x) gives infinity where correctly rounded result is finite
@ 2006-10-22  0:22 myles at peakstreaminc dot com
  2006-10-22  0:26 ` [Bug math/3406] " myles at peakstreaminc dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: myles at peakstreaminc dot com @ 2006-10-22  0:22 UTC (permalink / raw)
  To: glibc-bugs

glibc-2.3.4-2.19
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)

The attached sample program takes expf(x) and float(exp(x)) for a number x 
such that the exponential is ALMOST +INF in 32-bit floating point. expf(x) 
returns (incorrectly) INF, where float(exp(x)) is finite.

-- 
           Summary: expf(x) gives infinity where correctly rounded result is
                    finite
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: minor
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: myles at peakstreaminc dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: 2.6.9-34.ELsmp


http://sourceware.org/bugzilla/show_bug.cgi?id=3406

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/3406] expf(x) gives infinity where correctly rounded result is finite
  2006-10-22  0:22 [Bug math/3406] New: expf(x) gives infinity where correctly rounded result is finite myles at peakstreaminc dot com
@ 2006-10-22  0:26 ` myles at peakstreaminc dot com
  2008-02-11 20:52 ` jsm28 at gcc dot gnu dot org
  2008-05-11 17:50 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: myles at peakstreaminc dot com @ 2006-10-22  0:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From myles at peakstreaminc dot com  2006-10-22 00:26 -------
Created an attachment (id=1383)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1383&action=view)
sample program that reproduces the problem

Program output:


 x is 88.7220001220703125
  expf(x) is inf
  exp(x)  is 339996993417815084460509669606173966336


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3406

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/3406] expf(x) gives infinity where correctly rounded result is finite
  2006-10-22  0:22 [Bug math/3406] New: expf(x) gives infinity where correctly rounded result is finite myles at peakstreaminc dot com
  2006-10-22  0:26 ` [Bug math/3406] " myles at peakstreaminc dot com
@ 2008-02-11 20:52 ` jsm28 at gcc dot gnu dot org
  2008-05-11 17:50 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-11 20:52 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jsm28 at gcc dot gnu dot org  2008-02-11 20:52 -------
Patch submitted: http://sourceware.org/ml/libc-alpha/2008-02/msg00011.html


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3406

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/3406] expf(x) gives infinity where correctly rounded result is finite
  2006-10-22  0:22 [Bug math/3406] New: expf(x) gives infinity where correctly rounded result is finite myles at peakstreaminc dot com
  2006-10-22  0:26 ` [Bug math/3406] " myles at peakstreaminc dot com
  2008-02-11 20:52 ` jsm28 at gcc dot gnu dot org
@ 2008-05-11 17:50 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2008-05-11 17:50 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2008-05-11 17:49 -------
Fixed in cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=3406

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-11 17:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-22  0:22 [Bug math/3406] New: expf(x) gives infinity where correctly rounded result is finite myles at peakstreaminc dot com
2006-10-22  0:26 ` [Bug math/3406] " myles at peakstreaminc dot com
2008-02-11 20:52 ` jsm28 at gcc dot gnu dot org
2008-05-11 17:50 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).