[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inf/Inf = NaN?

From: John Utz
Subject: Inf/Inf = NaN?
Date: Wed, 16 Apr 1997 22:42:53 -0700 (PDT)

Hello everybody;

On my fake pentium-100 running FreeBSD-2.2-GAMMA and octave-2.0.5 compiled
with gcc-2.7.2 i get the above result ( Inf/Inf = NaN ). Shouldn't this
equal 1?

        I was thinking of hacking if(a==Inf)&&(b==Inf) result = 1 into my
code, but this is not how i like to work.

note, the specific operation is  (Inf-foo)/(Inf+foo) where foo is a real
positive int. This should be equal to 1, but...does the fact that i am
performing operations on Inf cause the math to "throw up it's hands and
surrender", so to speak?



 John Utz       address@hidden
        idiocy is the impulse function in the convolution of life

reply via email to

[Prev in Thread] Current Thread [Next in Thread]