Arithmetic Operators
Arithmetic operators contain both unary and binary operations.
Unary Operators
Unary operators have two parameters: src and answer. Both of these parameters follow the syntax based upon the equation below:{op}(src) = answer
where:- op
- The unary operation: Inverse (inv), SquareRoot (sqrt), Power (^), etc.
- src
- The input table to the operator op.
- answer
- Contains the result if the operation is successful.
Binary Operators
Binary operators follow a syntax based upon the following equation:lhs {op} rhs = answer
where:- op
- The binary operator: Add (+), Subtract(-), Multiply(*), Divide (/).
- lhs
- the left-hand side of the binary operator op.
- rhs
- The right-hand side of the operator.
- answer
- Contains the result if the operation is successful.