Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: billm@melbpc.org.au (Bill Metzenthen)
Subject: Re: division by zero exceptions ?
Date: 1998/11/02	[thread overview]
Message-ID: <slrn73q454.lgu.billm@lorentz.melbpc.org.au> (raw)
In-Reply-To: yFwYgQAgjJP2Ewvx@thewolery.demon.co.uk

On Sun, 1 Nov 1998 17:22:40 +0000, Anthony W. Youngman
    <thewolery@nospam.demon.co.uk> 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,
either because you can support it with a mathematical system where it
is correct (e.g. projective infinity) or because you have just been
plain lucky.  I believe that the IEEE didn't take up the projective
infinity option and we are stuck with affine infinites (certainly only
the very early Intel x86 FPU's supported projective infinity).  You
can get away with using affine infinites as a substitute for a
projective infinity provided that you restrict the operations you
perform on them.  For example, you can't use the following operations
and expect to get the correct answer:
                    x + y
                    x - y
                    x > y
                    x == y

Affine infinities can be useful but unless you are very careful
you probably won't know which one you will get when you do x/y
where (x != 0) and (y == 0).

>I agree that when you start dividing different degrees of infinity by
>each other things start getting complicated ... It's just a case of
>knowing your infinities (yes there are an INFINITE NUMBER of them, I
>believe :-)

Yes, there are an infinite number (at least a denumerable infinity of
them from Cantor's theorem) of transfinite cardinal numbers but that
is a red herring.

-- 
-----------------------------------------------------------------------------
Bill Metzenthen        | See http://www.suburbia.net/~billm/ for information
billm@melbpc.org.au    | on an 80x87 FPU emulator, using floating point
billm@suburbia.net     | (particularly on Linux), and code for manipulating
Melbourne, Australia   | the floating point environment on 80x86 Linux.
-----------------------------------------------------------------------------



  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         ` Bill Metzenthen
1998-11-01  5:00           ` Anthony W. Youngman
1998-11-02  5:00             ` Stefan Davids
1998-11-02  5:00             ` Bill Metzenthen [this message]
1998-11-02  5:00               ` Conrad Sanderson
1998-11-01  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