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

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

[Octave-bug-tracker] [bug #54302] power operator: 0.^0 results in NaN in


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #54302] power operator: 0.^0 results in NaN in some case
Date: Sat, 14 Jul 2018 13:30:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Follow-up Comment #4, bug #54302 (project octave):

The answer is yes:
Short answer is complex(0,0) is complex, 0+0j is not
++
octave:1>  0+0j
ans = 0
octave:2> whos
Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
        ans         1x1                          8  double

Total is 1 element using 8 bytes

octave:3> complex(0,0)
ans =  0 + 0i
octave:4> whos
Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
   c    ans         1x1                         16  double

Total is 1 element using 16 bytes



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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