winders |
10-09-2014 02:58 PM |
Quote:
Originally Posted by scottmandue
(Post 8299307)
Someone correct me (as if I had to ask this group to do that).
But I thought that RPL was just the natural way computers processed computations?
Then later software was developed to input formulas in more people friendly format?
|
Not really.
Reverse Polish Notation (RPN) is a modification of Polish Notation (PN). PN was invented in the 1920's. PN, also known as Prefix Notation, has the operator before the operands while RPN, also known as Postfix Notation, has the operator after the operands. The idea of both was to avoid the need for parenthesis.
PN and RPN are essentially stack-based. Computers, at the machine level, have registers that can be used as stacks but this a different concept. Higher level languages can be stack-based. Postscript is one such example and it uses postfix notation. RPN, if anything, was the forerunner to stack-based higher level languages, not the other way around.
|