The Luminous Path
http://luminouspath.de:80/forum/

Reverse Polish Notation
http://luminouspath.de:80/forum/viewtopic.php?f=30&t=1340
Page 1 of 1

Author:  Thórva [ 2010 Oct 13 (Wed) 12:38 pm ]
Post subject:  Reverse Polish Notation

Reverse Polish Notation, a k a "postfix notation", is pretty easy. Normally, you might express the number 18 like this:

Code:
9 + 9


where you put the operator in between its arguments. RPN just puts the operator at the end, so 9 + 9 becomes

Code:
9 9 +


or 2 x 3 becomes

Code:
2 3 x


Easy peasy! So if you're 21 years old, you might express that in RPN by writing something like

Code:
20 1 +

7 3 x

30 9 -


or similar. Keep that in mind!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/