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

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

[Octave-bug-tracker] [bug #31974] Interpreter fails to create complex nu


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #31974] Interpreter fails to create complex numbers with Inf complex parts
Date: Fri, 1 Jul 2016 19:28:48 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #28, bug #31974 (project octave):

I decided to sort through "Need Info"s and saw this old bug as still open.  I
noticed the original complaint still produces the same result in Octave 4.0.2,
different from Matlab 2016a. 

The referenced related bug 32053 was closed as fixed. So, is this a Need
Info?, should it become a Won't fix? A 'Matlab is wrong'...? I couldn't find a
maintainers list thread to follow, but it's 5 years old so... 

For posterity, here's are some simpler tests I culled from below with current
output:


>> 1+Inf*i
Octave:  NaN + Infi
Matlab:  1 + Infi

>> str2double('1 + Inf*i')
O: 1 + Infi
M: 1 + Infi

>> complex(1,Inf)
O: 1 + Infi
M: 1 + Infi

>> 1+Inf*j
O: NaN + Infi
M: 1+Infi

>> 1 + Inf*j
O: NaN + Infi
M: 1+Infi

>> 1 + Infj
O: error Infj undefined
M: error: Infj undefined

>> str2num('1+Inf*j')
O: NaN + Infi
M: 1 + Infi

>> 123*j
O: 0 + 123i
M: 0 + 123i

>> NaN*j
O: NaN + NaNi
M: NaN + NaNi

>> Inf * 4j
O: NaN + Infi
M: 0 + Infi

>> x = Inf;x*j
O: Nan + Infi
M: 0 + Infi

>> j = complex(0,1);Inf*j
O: NaN + Infi
M: 0 + Infi

and many more...

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31974>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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