From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,c887bec98cd793ef X-Google-Attributes: gid10c696,public X-Google-Thread: 111c93,c887bec98cd793ef X-Google-Attributes: gid111c93,public From: billm@melbpc.org.au (Bill Metzenthen) Subject: Re: division by zero exceptions ? Date: 1998/11/02 Message-ID: #1/1 X-Deja-AN: 407420321 References: <01be0482$6ebd1e60$45934b0c@default> <71f8bc$clh$3@newnews.nl.uu.net> Organization: Melbourne PC User Group Inc, Australia Reply-To: billm@melbpc.org.au Newsgroups: comp.os.linux.alpha,comp.os.linux.development.apps On Sun, 1 Nov 1998 17:22:40 +0000, Anthony W. Youngman 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. -----------------------------------------------------------------------------