Calculator Input Methods - Reverse Polish Notation (RPN) (postfix Notation)

Reverse Polish Notation (RPN) (postfix Notation)

In reverse Polish notation, also known as postfix notation, all operations are entered after the operands on which the operation is performed. Reverse Polish notation is parenthesis-free which usually leads to fewer button presses needed to perform an operation. By the use of stack one can enter formulas without the need to rearrange operands. An example of a calculator which uses RPN is the HP 48G.

Examples
Formula Key strokes Key stroke count
1 ↵ Enter 2 ↵ Enter 3 × + 7
3 0 SIN 3 0 COS × 7
5 ↵ Enter 3 - 4
1 5 ↵ Enter 1 0 + 1 0 + 1 0 + 12

Note example 1 which is one of the few examples where reverse Polish notation does not use the fewest button presses – provided one does not rearrange operands. If one would do so then only 6 key strokes would be needed.

Read more about this topic:  Calculator Input Methods

Famous quotes containing the words reverse and/or polish:

    During the late war [the American Revolution] I had an infallible rule for deciding what [Great Britain] would do on every occasion. It was, to consider what they ought to do, and to take the reverse of that as what they would assuredly do, and I can say with truth that I was never deceived.
    Thomas Jefferson (1743–1826)

    Use the stones of another hill to polish your own jade.
    Chinese proverb.