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 19:10:23 -0400 (EDT)

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

Since you are able to reproduce, can you step through the code with the
debugger?  The sinc.m function is very simple


  y = ones (size (x));

  i = (x != 0);

  if (any (i(:)))
    t = pi * x(i);
    y(i) = sin (t) ./ t;
  endif


I would like to know what the value of 'i' is.  According to your comment #6,


octave:6> x(6) != 0
ans = 00000000


the sixth element is not equal to zero and should not be included in any
further calculations.



    _______________________________________________________

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]