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

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

[Octave-bug-tracker] [bug #56414] sin function incorrect results when no


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56414] sin function incorrect results when not slicing input
Date: Wed, 29 May 2019 11:30:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

Update of bug #56414 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #3:

Thank you for the report and the discussion, but this is not a bug, this is a
documented Octave feature that is intentionally slightly different from
Matlab.

The important difference is that multiplying a range by a scalar returns
another range. In your example, x×pi returns a new range with starting value
-30×pi and step size pi. If you want to evaluate the steps as exact integers
before multiplying with pi, use `pi*[x]`.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56414>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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