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

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

[Octave-bug-tracker] [bug #32533] Operator precedence for transpose inco


From: Patrick Häcker
Subject: [Octave-bug-tracker] [bug #32533] Operator precedence for transpose incorrect
Date: Wed, 06 Apr 2011 20:18:50 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/4.4; de) KHTML/4.4.5 (like Gecko)

Follow-up Comment #9, bug #32533 (project octave):

These are the results Matlab produces:

% Test 1
>> a = 2;
>> ~a++
??? ~a++
        |
Error: Expression or statement is incomplete or incorrect.

(my comment: ++ is not defined in Matlab, so a++ does not work, too)


% Test 2                                                                      
                                  
>> 2^3^5                                                                      
                                     

ans =

       32768

(my comment: mathematically wrong left to right evaluation)


% Test 3
a = 2;
---a

ans =

    -2

(my comment: as -- is not defined in Matlab (the same as ++), Matlab's
interpretation is: -(-(-a)))

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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