Re: Is infinity equal to infinity?

Kevin@quitt.net (Kevin D. Quitt)
11 Jul 1998 23:42:56 -0400

          From comp.compilers

Related articles
Is infinity equal to infinity? erikr@iar.se (Erik Runeson) (1998-07-08)
Re: Is infinity equal to infinity? vosse@RULS41.FSW.LEIDENUNIV.NL (1998-07-10)
Re: Is infinity equal to infinity? rwhutch@nr.infi.net (1998-07-10)
Re: Is infinity equal to infinity? fis@mpi-sb.mpg.de (Matthias Fischmann) (1998-07-10)
Re: Is infinity equal to infinity? john_mitchell@intuit.com (John Mitchell) (1998-07-10)
Re: Is infinity equal to infinity? joachim.durchholz@munich.netsurf.de (Joachim Durchholz) (1998-07-10)
Re: Is infinity equal to infinity? bear@sonic.net (Ray Dillinger) (1998-07-11)
Re: Is infinity equal to infinity? Kevin@quitt.net (1998-07-11)
Re: Is infinity equal to infinity? dwcantrell@aol.com (1998-07-13)
Re: Is infinity equal to infinity? dwcantrell@aol.com (1998-07-13)
Re: Is infinity equal to infinity? henry@spsystems.net (1998-07-13)
Re: Is infinity equal to infinity? erikr@iar.se (Erik Runeson) (1998-07-20)
Re: Is infinity equal to infinity? larry.jones@sdrc.com (Larry Jones) (1998-07-20)
Re: Is infinity equal to infinity? darcy@usul.CS.Berkeley.EDU (1998-07-20)
[5 later articles]
| List of all articles for this month |
From: Kevin@quitt.net (Kevin D. Quitt)
Newsgroups: sci.math.num-analysis,comp.lang.c,sci.math,comp.compilers
Date: 11 Jul 1998 23:42:56 -0400
Organization: If was organized, would I be reading Net News?
Distribution: inet
References: 98-07-058 98-07-089
Keywords: arithmetic

> So it makes (practical) sense to say that "x == NaN" should be false
> (because "==" is a numerical comparison).


It is guaranteed to be false. The appropriate test for x having the value NaN
is (x == x) - which will be false if x is NaN.


>The result Inf - Inf = NaN also makes sense (for practical purposes),


It makes sense mathematically, since Inf - Inf can have any value.
--
Kevin D Quitt USA 91351-4454
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.