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: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #64361] sinc() return NaN on sinc(-1:0.20:1-0.20) expression
Date: Wed, 28 Jun 2023 23:49:46 -0400 (EDT)

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


octave:1> format long
octave:2> x = (-1:0.2:1-0.2)
x =

 Columns 1 through 7:

   -1.000000000000000   -0.800000000000000   -0.600000000000000  
-0.400000000000000   -0.200000000000000    0.000000000000000   
0.200000000000000

 Columns 8 through 10:

    0.400000000000000    0.600000000000000    0.800000000000000

octave:3> x = [x]
x =

 Columns 1 through 6:

  -1.000000000000000e+00  -8.000000000000000e-01  -6.000000000000000e-01 
-4.000000000000000e-01  -2.000000000000000e-01   5.551115123125783e-17

 Columns 7 through 10:

   2.000000000000001e-01   4.000000000000001e-01   6.000000000000001e-01  
8.000000000000000e-01



Dmitri.
-- 



    _______________________________________________________

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]