1. A method of calculating a presented mathematical expression in a computing system, where the presented mathematical expression includes at least one first operation and a second operation where the first operation is calculated before the second expression according to rules of precedence of operators, the method comprising the steps of: (a) evaluating the second operation to determine if a combination of the second operation acting on the at least one first operation is replaceable with a mathematically identical expression that involves reduced computational effort to calculate than the presented mathematical expression; (b) re-expressing the combination of the second operation acting on the at least one first combination with the mathematically identical expression; and (c) calculating the mathematically identical expression.