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

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

[Octave-bug-tracker] [bug #31246] Inconsistent behavior of .^


From: David Bateman
Subject: [Octave-bug-tracker] [bug #31246] Inconsistent behavior of .^
Date: Mon, 04 Oct 2010 20:28:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1)

Update of bug #31246 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The .^ operator has a higher precedence than the - operator and so your two
statement written differently ar

-(0.5 .^ (2/3)) 

and

(-0.5) .^ (2/3) 

Are you really surprised they aren't equal? Read section 8.8 of the manual
at

http://www.gnu.org/software/octave/doc/interpreter/Operator-Precedence.html#Operator-Precedence

for more information.

D.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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