From: conrad@hive.me.gu.edu.au (Conrad Sanderson)
Subject: Re: division by zero exceptions ?
Date: 1998/11/02 [thread overview]
Message-ID: <slrn73qh1a.dp0.conrad@hive.me.gu.edu.au> (raw)
In-Reply-To: slrn73q454.lgu.billm@lorentz.melbpc.org.au
Bill Metzenthen <billm@melbpc.org.au> wrote:
>>You state that
>>>For most computations 1/0 represents a severe error
>>but I would beg to differ. For trig and algebra, 1/0 is a linear
>>infinity, and (like with eg superstrings) you don't give a damn about
>>infinity provided at the end they all cancel out and give you your
>>answer. Which for trig and algebra you know they will.
>
>Then we will have to agree to disagree. I will assert that 1/0 is
>most likely to occur due to an oversight on the part of the
>programmer. Sometimes you can get away with letting 1/0 = infinity,
I'd prefer to have my algorithm blow up with Infinity or NaN
and _handle_ that within my program. I write algorithms
which are not guaranteed to be stable, but are stable
for 99% of the data i feed them.
I could go an compile all my code with -mieee but then
I get a significant performance penalty. Whether this is
because of the quality of the code egcs generates for the
Alpha is another question. Currently it is more
viable for me to use a Pentium II/450 than an Alpha 600
because my code runs faster on the Pentium.
--
Conrad Sanderson - Microelectronic Signal Processing Laboratory
Griffith University, Queensland, Australia
http://spl.me.gu.edu.au [ under construction ]
next prev parent reply other threads:[~1998-11-02 5:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-26 5:00 division by zero exceptions ? Conrad Sanderson
1998-10-26 5:00 ` Michal Jaegermann
1998-10-27 5:00 ` Remco Wouts
1998-10-28 5:00 ` Nils Faerber
1998-10-31 5:00 ` Shana Tackett
1998-10-30 5:00 ` James D. Freels
1998-10-31 5:00 ` Greg Lindahl
1998-10-31 5:00 ` Toon Moene
1998-10-31 5:00 ` Anthony W. Youngman
1998-11-01 5:00 ` Stefan Davids
1998-11-01 5:00 ` Bill Metzenthen
1998-11-01 5:00 ` Anthony W. Youngman
1998-11-02 5:00 ` Bill Metzenthen
1998-11-02 5:00 ` Conrad Sanderson [this message]
1998-11-02 5:00 ` Stefan Davids
1998-11-02 5:00 ` Michal Jaegermann
1998-11-03 5:00 ` rscanon
1998-10-31 5:00 ` Anthony W. Youngman
1998-11-01 5:00 ` Greg Lindahl
1998-10-31 5:00 ` Bill Metzenthen
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