next up previous contents
Next: Vergleichen, Logik Up: Operatoren Previous: Definieren

Rechnen

Die folgende Tabelle gibt die Operatoren mit je einem Beispiel im Octave-Modus (O-Mode) und Maxima-Modus (M-Mode) an. Operationen werden entsprechend ihres Rangs abgearbeitet, wenn dieser gleich ist in der Reihenfolge.
Funktion O-Mode M-Mode Rang Reihenfolge
Addition x + y x + y 4 links-rechts
Subtraktion x - y x - y 4 links-rechts
Skalare Multiplikation x .* y x * y 3 links-rechts
Vektor/Matrix Multiplikation x * y x . y 3 links-rechts
Skalare Division x ./ y x / y 3 links-rechts
Matrix Division (rechts) x / y 3 links-rechts
Matrix Division (links) x \ y 3 links-rechts
Skalare Exponentiation x .^ y x ^ y 1 links-rechts
Vektor/Matrix Exponentiation x ^ y x ^^ y 1 links-rechts
Zahlenbereich x:y:z 5 links-rechts
Zuweisung x = z x : y 10 rechts-links
Zuweisung x += z 10 rechts-links
Zuweisung x -= z 10 rechts-links
Zuweisung x /= z 10 rechts-links
Zuweisung x *= z 10 rechts-links
Preincrement ++x ++x 10 links-rechts
Predecrement --x --x 10 links-rechts
Postincrement x++ x++ 10 rechts-links
Postdecrement x-- x-- 10 rechts-links
Adjunkte, konjugiert komplex x' 1 rechts-links
Fakultät x! 1 links-rechts


next up previous contents
Next: Vergleichen, Logik Up: Operatoren Previous: Definieren
Helmut Dersch
2009-03-15