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

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

[Octave-bug-tracker] [bug #64361] sinc() return NaN on sinc(-1:0.20:1-0.


From: Rik
Subject: [Octave-bug-tracker] [bug #64361] sinc() return NaN on sinc(-1:0.20:1-0.20) expression
Date: Wed, 28 Jun 2023 23:47:22 -0400 (EDT)

Follow-up Comment #14, bug #64361 (project octave):

I always suspected this is something to do with ranges, but I'm trying to
pinpoint where.

Could you try this code:


format longe
x = (-1:0.2:1-0.2)


I'm trying to see whether the sixth element is really presented as 0 or as
something small like 5e-17.

Next piece of code to execute


y = (x != 0)


The sixth element should be false, but probably isn't.

What this could mean is that range extraction for a single element is
different then than for an index vector.  There are different routines in
liboctave/array/Range.h for the two situations.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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