NEWS · LORE · FORUM · JOIN US

 

 

 

 

 

 

 

 

 

 

 

 

It is currently 2024 Mar 28 (Thu) 2:38 pm




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Reverse Polish Notation 
Author Message
Officer (Retired)
User avatar

Joined: 2009 Feb 16 (Mon) 9:35 pm
Posts: 4550
Location: Berlin-Neukölln
Class: Paladin
Post 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!


2010 Oct 13 (Wed) 12:38 pm
Profile
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB. Theme based on work by Vjacheslav Trushkin.