Reverse Polish Notation

E232845

Reverse Polish Notation is a mathematical expression format that places operators after their operands, eliminating the need for parentheses and simplifying stack-based computation.

All labels observed (2)

Label Occurrences
Reverse Polish Notation canonical 2
Reverse Polish notation 2

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf expression notation
mathematical notation
postfix notation
avoids associativity rules in parsing
operator precedence rules in parsing
canBeConvertedFrom infix notation
canBeConvertedTo infix notation
eliminatesNeedFor parentheses in many expressions
hasAbbreviation RPN
hasAlternativeName Polish postfix notation
postfix notation
hasKeyProperty evaluation can proceed left to right using a stack
every valid expression is unambiguous
order of operations is encoded by position rather than precedence rules
hasTypicalExample "3 4 +" for the infix expression "3 + 4"
"3 4 5 * +" for the infix expression "3 + 4 * 5"
isAdvantage enables simple one-pass evaluation
maps directly to stack machine instructions
reduces need for parentheses
isBasedOn Polish notation
isCommonlyUsedBy HP calculators
some scientific calculators
isConvertedUsing shunting-yard algorithm
isDefinedAs a mathematical notation in which every operator follows all of its operands
isDisadvantage can be harder to read for complex expressions
less familiar to many users than infix notation
isEvaluatedNaturallyWith stack data structure
isRelatedTo Polish notation
infix notation
prefix notation
isUsedFor representing arithmetic expressions
representing logical expressions
stack-based computation
isUsedIn Forth programming language
linked to: Forth

PostScript language
linked to: PostScript

calculator design
compiler design
computer science
expression evaluation algorithms
stack-based virtual machines
simplifies expression parsing
implementation of expression evaluators
supports left-associative operators without parentheses
right-associative operators without parentheses
usesOperatorPosition after operands
wasIntroducedBy Charles L. Hamblin NERFINISHED
wasIntroducedInYear 1957

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

HP calculators notableFor Reverse Polish Notation
HP calculators hasInputMethod Reverse Polish Notation
shunting-yard algorithm produces Reverse Polish notation
linked to: Reverse Polish Notation
shunting-yard algorithm relatedTo Reverse Polish notation
linked to: Reverse Polish Notation