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

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

[Octave-bug-tracker] [bug #45587] rem(-0, 1) returns 0 instead of -0


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #45587] rem(-0, 1) returns 0 instead of -0
Date: Tue, 21 Jul 2015 18:07:06 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

Follow-up Comment #6, bug #45587 (project octave):


                                            < M A T L A B (R) >
                                  Copyright 1984-2015 The MathWorks, Inc.
                                  R2015a (8.5.0.197613) 64-bit (glnxa64)
                                             February 12, 2015

 
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 

        Academic License

>> atan2d (rem (-0, 0), -1)

ans =

   NaN

>> atan2d (rem (-0, -0), -1)

ans =

   NaN

>> atan2d (rem ([-0 0], [0 0]), [-1 -1])

ans =

   NaN   NaN

>> atan2d (rem ([-0 0], [1 1]), [-1 -1])

ans =

  -180   180

>> atan2d (rem (4, -0), -1)

ans =

   NaN

>> atan2d (rem (-4, -0), -1)

ans =

   NaN

>> atan2d (rem (4, 1), -1)

ans =

   180

>> atan2d (rem (-4, 1), -1)

ans =

  -180

>> 

And, your comment which just appears looks right.
See the NaNs...

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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