decorative banner

Using operators in expressions


    Expressions that contain several math functions can get complex and difficult to read. Now, use the operators + (add), - (subtract), * (multiply), and / (divide) in place of the add(), sub(), mul(), and div() functions to simplify those expressions. Use the "-" operator also for unary negation. For example, when you use the new operators, the following expression:

    div(add(pos1, add(pos2, pos3)), 3)

    becomes as follows:

    (pos1 + pos2 + pos3) / 3