octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37455] tests do not distinguish -0


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #37455] tests do not distinguish -0
Date: Sun, 30 Sep 2012 02:43:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

Follow-up Comment #10, bug #37455 (project octave):

John,

>> x = -0

x =

     0

>> 1/x

ans =

  -Inf

>> x = 1/-Inf

x =

     0

>> 1/x

ans =

  -Inf

>> 
>> version

ans =

7.9.0.529 (R2009b)

>> 
So, it knows about -0, but does not show it!

y =0;
1/y
gives Inf, of course.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37455>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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