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

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

[Octave-bug-tracker] [bug #57671] Complex numbers in array gives NaN


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #57671] Complex numbers in array gives NaN
Date: Sun, 26 Jan 2020 19:08:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Follow-up Comment #1, bug #57671 (project octave):

I tried on 5.2.0

> (j*[0;0]).^[2 1 0]
ans =

   0   0   1
   0   0   1

>> (j*[0;0;0]).^[2 1 0]
ans =

   0   0   1
   0   0   1
   0   0   1

>> (j*[0;1;0]).^[2 1 0]
ans =

   0.00000 + 0.00000i   0.00000 + 0.00000i       NaN -     NaNi
  -1.00000 + 0.00000i   0.00000 + 1.00000i   1.00000 + 0.00000i
   0.00000 + 0.00000i   0.00000 + 0.00000i       NaN -     NaNi

>>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57671>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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