>>19583126The notation is ambiguous. This is self-evident from the number of people arguing with each other. It's simply not clear whether our notation is telling us to do the division or the multiplication first. Other systems of notation exist where there is no need for an arbitrary order of operations because the notation spells out what to do and when to do it.
For example, you could use prefix notation.
>DIV(6, MUL(2, ADD(1, 2)) = 1, unambiguouslyand
>MUL(DIV(6, 2), ADD(1, 2)) = 9, unambiguouslyThis notation forces you to specify the order in which to perform your operations.
A more compact solution would be to use reverse polish notation.