Permalink Submitted by John Critchley on July 15, 2019

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

## Teach Polish notation

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