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: Marco Caliari
Subject: [Octave-bug-tracker] [bug #56659] Symmetry of linspace (-a, a, n)
Date: Fri, 20 Sep 2019 02:42:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

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

@Rik: I was able to find this counterexample


> a = 1.3944669777885017e+01;
> x = linspace (-a,a,11);
> x == -fliplr(x)
ans =

  1  1  1  1  1  0  1  1  1  1  1


that is, the middle zero is not exactly zero, which is another nice property
one would like to have for symmetric linspaces.
By the way, with my matlab R2019a NONE of the examples in this bug report are
symmetric. Which version did you check?

    _______________________________________________________

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]