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

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

[Octave-bug-tracker] [bug #64692] colon range includes an extra value


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #64692] colon range includes an extra value
Date: Mon, 18 Sep 2023 16:31:24 -0400 (EDT)

Follow-up Comment #7, bug #64692 (project octave):

I've just verified empirically that reducing the default tolerance ct to 0 in
Range.cc (function xteq and the place it's called) causes 1.8 : 0.05 : 1.9 to
return only 1.8 and 1.85. Only with a nonzero tolerance ct does it give 1.9 as
well.

The existing case seems to do well except for marginal values less than some
2e-15 away from a range limit. If anyone has a better solution from other open
source numerical software, pls post it.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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