Arithmetic Operators

<< Click to Display Table of Contents >>

Navigation:  Problem Descriptor Reference > The Elements of a Descriptor > Operators >

Arithmetic Operators

Previous pageReturn to chapter overviewNext page

The following customary symbols can be use in arithmetic expressions:





Unary negate, Forms the negative of a single operand


Binary add, Forms the sum of two operands


Binary subtract, Forms the difference of two operands


Binary multiply, Forms the product of two operands


Binary divide, Divides the first operand by the second


Binary power, Raises the first operand to the power of the second


These operators can be applied to scalars, arrays or matrices.  When used with arrays or matrices, the operations are applied element-by-element.


Special operators are defined to designate conventional matrix and array operations.





Binary MATRIX multiply. Forms the product of two matrices or the product of a MATRIX and an ARRAY.  Applied to tensors, the result is the same as the DOT operator.


Matrix "division".  A1 = A2 // M produces the ARRAY A1 satisfying the equation A2 = M**A1.