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: Stefan Davids Subject: Re: division by zero exceptions ? Date: 1998/11/02 Message-ID: <71l74g$108$1@hopf.demon.co.uk>#1/1 X-Deja-AN: 407684709 X-NNTP-Posting-Host: hopf.demon.co.uk:193.237.6.156 References: <01be0482$6ebd1e60$45934b0c@default> <71f8bc$clh$3@newnews.nl.uu.net> Mail-Copies-To: never X-PGP5-Di-He-Fingerprint: 3C50 FF6C 24BE 8A29 42F6 BC76 6455 98AF CAE2 B9D7 X-PGP5-DSS-Fingerprint: 97DA 32B4 F938 684A 71F9 AA54 3D94 6C09 A028 9B74 X-Complaints-To: abuse@demon.net X-PGP2-Fingerprint: 12 D9 40 3E 07 5B 8C BE 42 19 1B 67 0E 0A 6B 87 X-Trace: news.demon.co.uk 910041271 nnrp-05:29520 NO-IDENT hopf.demon.co.uk:193.237.6.156 X-PGP2-Key: http://www.maths.nott.ac.uk/personal/smd/smd.asc Organization: hopf.demon.co.uk X-PGP5-Key: http://www.maths.nott.ac.uk/personal/smd/smd5.asc X-URL: http://www.maths.nott.ac.uk/personal/smd NNTP-Posting-Date: 2 Nov 1998 21:10:40 GMT Newsgroups: comp.os.linux.alpha,comp.os.linux.development.apps Anthony W. Youngman wrote: >In article , Bill Metzenthen > writes >>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. If you're planning to handle divergencies properly I suggest you need to be _very_ clear about what sort of divergencies you're dealing with and do the necessary analysis before programming it. I'm unaware of a C library that allows this sort of analysis of limits. I have no idea what you mean when you say 1/0 is a 'linear infinity'. 1/0 is undefined - full stop. You are entitled to talk about the _limit_ of 1/x or 1/x^2 as x tends to 0. You may be able to get a finite answer from some combination of functions that are divergent at some point. Generally an infinity arising in a mathematical model is a sign of deficiency in the model. >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 :-) I suggest you read a book on analysis. regards Stefan -- perl -we 'map {eval q( sub ).$_.q( {$a = (shift).").$_.q("; $_ = $a; s/S/s/; s/(A|P|H)/ $1/g;print;s/(.)/$1 /g;$_=join q(),reverse split;s/(A|P|H)/$1 /g; print " "x(80-(length)*2), "$_\n"; return($a); } ) } ((A..Z), (q(a)..q(z))); r(e(k(c(a(H (l(r(e(P( r(e(h(t(o(n(A( t(S(u(J( q() )))) ))))))) ))))) )))));'