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

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

[Octave-bug-tracker] [bug #56659] Symmetry of linspace (-a, a, n)


From: Rik
Subject: [Octave-bug-tracker] [bug #56659] Symmetry of linspace (-a, a, n)
Date: Fri, 20 Sep 2019 13:58:34 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

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

I checked using R2019b.  For the counterexample in comment #5 (a =
1.3944....), Matlab produces a symmetric vector.  Although, they get the one
in comment #4 (linspace (-1.25, 0.75, 11) + 0.25) wrong which Octave would get
right with my patch.

Try the next patch which passes all examples in this report.

(file #47554)
    _______________________________________________________

Additional Item Attachment:

File name: linspace.dbl2.diff             Size:1 KB
    <https://savannah.gnu.org/file/linspace.dbl2.diff?file_id=47554>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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