up previous next
In CoCoA there are 5 main types of operators: algebraic
operators, relational operators, boolean operators, selection
operators, and the range operator.
There is also an n-ary operator
Cartesian products of lists and an operator
The meaning of an operator depends on the types of its operands; the
in the expression
A + B
represents the sum of polynomials, or of
ideals, or of matrices, etc. according to the type of A and B.
The CoCoA operators are, from the highest to the lowest priority:
 . (selection operators)
+ - (as unary operators)
* : /
+ - (as binary operators)
= <> < <= > >=
Operations with equal priority are performed from left to right.
When in doubt, parentheses may be used to enforce a particular order of