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 18:55:12 -0400 (EDT)

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

More bizarre stuff:


octave:27> format bit
octave:28> x = (-1:0.2:1-0.2)
x =

 Columns 1 and 2:

  1011111111110000000000000000000000000000000000000000000000000000 
1011111111101001100110011001100110011001100110011001100110011010

 Columns 3 and 4:

  1011111111100011001100110011001100110011001100110011001100110011 
1011111111011001100110011001100110011001100110011001100110011001

 Columns 5 and 6:

  1011111111001001100110011001100110011001100110011001100110011000 
0011110010010000000000000000000000000000000000000000000000000000

 Columns 7 and 8:

  0011111111001001100110011001100110011001100110011001100110011100 
0011111111011001100110011001100110011001100110011001100110011011

 Columns 9 and 10:

  0011111111100011001100110011001100110011001100110011001100110100 
0011111111101001100110011001100110011001100110011001100110011010

octave:29> x(6)
ans = 0000000000000000000000000000000000000000000000000000000000000000
octave:30> x(1)
ans = 1011111111110000000000000000000000000000000000000000000000000000
octave:31> x(2)
ans = 1011111111101001100110011001100110011001100110011001100110011010
octave:32> x(3)
ans = 1011111111100011001100110011001100110011001100110011001100110011
octave:33> x(4)
ans = 1011111111011001100110011001100110011001100110011001100110011000
octave:34> x(5)
ans = 1011111111001001100110011001100110011001100110011001100110011000
octave:35> x(6)
ans = 0000000000000000000000000000000000000000000000000000000000000000




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]