| OPERATOR |
DEFINITION |
+ |
Addition between x and y. (eg: x + y) |
- |
Subtraction between x and y. (eg: x - y) |
* |
Multiplication between x and y. (eg: x * y) |
/ |
Division between x and y. (eg: x / y) |
% |
Modulus of x with respect to y. (eg: x % y) |
^ |
. (eg: x ^ y) |
:= |
Assign the value of x to y. Where y is either a variable
or vector type. (eg: y := x) |
+= |
Increment x by the value of the expression on the right
hand side. Where x is either a variable or vector type.
(eg: x += abs(y - z)) |
-= |
Decrement x by the value of the expression on the right
hand side. Where x is either a variable or vector type.
(eg: x[i] -= abs(y + z)) |
*= |
Assign the multiplication of x by the value of the
expression on the righthand side to x. Where x is either
a variable or vector type. (eg: x *= abs(y / z)) |
/= |
Assign the division of x by the value of the expression
on the right-hand side to x. Where x is either a variable or vector
type. (eg: x[i + j] /= abs(y * z)) |
%= |
Assign x modulo the value of the expression on the right
hand side to x. Where x is either a variable or vector type. (eg:
x[2] %= y ^ 2) |