Expressions in PAscript are evaluated as follows:

  1. Calculate powers, evaluate functions.
  2. Calculate bracketed expressions.
  3. Multiplication and division are performed before addition and subtraction.
  4. All other cases from right to left.