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 20:01:01 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

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

hmmm.... the test output came through on email but isn't shown below. trying
again:


>> 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



    _______________________________________________________

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]