Infix Notation: | The "normal order" we write equations, and the normal way that inexpensive calculators work. |
(eg. | 4 | - | 3 | = 1) |
Prefix Notation: | This known as "reverse Polish" notation - the operator comes first, followed by the two operands. |
(eg. | - | 4 | 3 | = 1) |
Postfix Notation | The opposite of prefix - the operator comes after the two operands. |
(eg. | 4 | 3 | - | = 1) |
Prefix: | - \n 4 \n 3 \n | (display 1 as result) |
Postfix: | 4 \n 3 \n - \n | (display 1 as result) |
Infix: | 4 \n - \n 3 \n | (display 1 as result) |
Prefix: | - 04 03 = | (display 01 as result) |
Postfix: | 04 03 - = | (display 01 as result) |
Infix: | 04 - 03 = | (display 01 as result) |
4 - 3 <Enter>
- 4 <kp> 3 <Enter>
4 <kp> 3 -