By using polish or reversed polish notation this problem just disappears. it really is just a problem of semantics / (mathematical) language; and by using such a notation the ambigity just goes. Here it is in RPN:
$ dc
6 2 / 1 2 + * p
9
6 2 1 2 + * / p
1
By using polish or reversed polish notation this problem just disappears. it really is just a problem of semantics / (mathematical) language; and by using such a notation the ambigity just goes. Here it is in RPN:
$ dc
6 2 / 1 2 + * p
9
6 2 1 2 + * / p
1