Maple Syntax
As much as possible, Maple conforms to standard linear expression notation and precedence rules. The syntactic expression operators in Maple are shown below in order of precedence (lowest to highest), where all the operators in a given group have the same precedence.
a || bstring concatenation:-use statement::type based pattern match%the ditto operatora &name buser-definable operator&name aunary casea !factoriala ^ bexponentiationa @@ boperator exponentiationa * b / c...arithmetic operationsa intersect bset intersectiona @ boperator compositiona . bdot product or matrix multiplicationa + b - c...arithmetic operations+ aarithmetic operations- aarithmetic operationsa union bset union and differencea minus bset union and differencea mod ban expression or value mod another valuesubsetsubset operatora .. ba range of valuesa < bcomparison operationsa <= bcomparison operationsa = bcomparison operationsa <> bcomparison operationsa > bcomparison operationsa >= bcomparison operationsintests for set and list membershipa $ b$ sequence generatornot alogical nota and blogical anda or blogical orxorlogical xorimplieslogical implicationa -> ban operator (simple procedure)a, ba sequence of valuesassumingcompute value of expression under assumptions:=assignment statement( a )a parenthesized expression (to control precedence)' a 'unevaluated expression{ a, b, ... }a set[ a, b, ... ]a list%1labeled expression in the last outputa [ b ]indexed object or selection of entries from a data structuref ( a )function call
An operator or function can be applied element-wise by using the element-wise syntax--a tilde (~) after the operator or function name. The precedence of element-wise operators matches that of the operator being applied element-wise.
Note: The exponentiation operators are defined to be nonassociative. Therefore, a^b^c is invalid in Maple--parentheses must be used. The other operators are left-associative, except logical NOT, which is right-associative.
For information on Maple syntax for linear algebra and matrix computations, see Linear Algebra Syntax Shortcuts.
See Alsooperatorquotes