What is Reverse Polish Notation?

Reverse Polish Notation (or RPN) is simply a different mathematical way of laying out equations, take for example the expression:
7+ 9
The layout is <First number> <Operator> <Second Number>, in computing we usually refer to the numbers as 'Operands' - another name for this layout is 'infix'. RPN lays out expressions with the Operands first and the Operator later. So our expression becomes:
7 9 +

Answered by Nick P. Computing tutor

3895 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

why is the Harvard architecture is sometimes used in preference to the von Neumann architecture and give examples of each system


Describe an IDE and its features in programming. (3 Marks)


Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.


When a stack is implemented using a 1-D array, adding a valid item can cause an execution error. Explain why an execution error can occur in this situation.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy