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: Thu, 29 Jun 2023 21:16:58 -0400 (EDT)

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


[comment #34 comment #34:]
> Does the problem you see go away if you execute
> 

> optimize_range (false);


> 
> before executing the sinc test code?
> 

Yes.


octave:1> optimize_range (false)
octave:2> sinc(-1:0.20:1-0.20)
ans =

   3.8982e-17   2.3387e-01   5.0455e-01   7.5683e-01   9.3549e-01   1.0000e+00
  9.3549e-01   7.5683e-01   5.0455e-01   2.3387e-01

octave:3> optimize_range (true)
octave:4> sinc(-1:0.20:1-0.20)
ans =

   3.8982e-17   2.3387e-01   5.0455e-01   7.5683e-01   9.3549e-01          NaN
  9.3549e-01   7.5683e-01   5.0455e-01   2.3387e-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]