E.g., , or , etc.
Infix notation suffers from some ambiguity; e.g.
could mean or . Parentheses are needed to specify the order of operations unambiguously.
The “usual” fix for the ambiguity problem described above is to provide a convention regarding precedence of operations. This is typically done for computer parsing of mathematical expressions rather than in math done by hand, because in the former case, the computer must have some standard rules to proceed. For example, it is typical to make multiplication “higher precedence” than addition, so in the above case, would be performed before adding the result to 3.
The ambiguity problem only occurs when multiple operators are present in one expression, and thus, the associative law does not hold. E.g., there is no ambiguity in , because is the same as , by the associative property of addition.
|Date of creation||2013-03-22 16:21:20|
|Last modified on||2013-03-22 16:21:20|
|Last modified by||akrowne (2)|