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: Rik
Subject: [Octave-bug-tracker] [bug #45587] rem(-0, 1) returns 0 instead of -0
Date: Tue, 21 Jul 2015 17:58:08 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

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

Thanks, I guess they have made a special case when the second argument is 1. 
Octave already has this for the special case where the second argument is 0 so
it would be easy to add.

Could you try some other tests to verify corner cases?


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



    _______________________________________________________

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]