From: John Montgomery <johnm@lorentzian.com>
To: axp-list@redhat.com
Subject: Problem with floating point exceptions
Date: Wed, 06 Jan 1999 21:29:45 +0000 [thread overview]
Message-ID: <3693D5C9.786F9302@hamster.lorentzian.com> (raw)
[-- Attachment #1: math.txt --]
[-- Type: text/plain, Size: 755 bytes --]
I'm trying to port a large Fortran program to alpha Linux using f2c/gcc.
My system is a UDB running RedHat 5.1. I'm able to compile and run my
code, but I'm having some strange numerical problems. I get floating
point exceptions in sections of the code which evaluate exp(-x) for large
positive values of x. This is normal behavior and on other platforms
results in underflows, which are silently set to zero. Also, when I poke
around in core dumps with gdb I find numbers with exponents less than
-308, which seem like they should have overflowed already. Perhaps these
somehow got unnormalized?
I'd like to just have these cases underflow to zero without generating
exceptions, does anyone know how to make this happen?
Thanks,
John Montgomery
next reply other threads:[~1999-01-06 22:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-06 21:29 John Montgomery [this message]
1999-01-06 21:47 ` Problem with floating point exceptions Greg Lindahl
1999-01-06 23:23 ` Michal Jaegermann
1999-01-07 10:19 ` John Connett
1999-01-06 21:57 ` Adam C. Powell, IV
1999-01-07 1:06 ` Joachim Wesner
1999-01-07 15:54 ` Samba Izaak Bozof
1999-01-07 16:53 ` Samba feedback
1999-01-07 16:56 ` Samba Michal Jaegermann
1999-01-07 17:57 ` Samba Maurice Hilarius
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox