Tool to write in Reverse Polish Notation RPN: a post-pifex notation which allows to write mathematical expression without parenthesis.
Reverse Polish Notation - dCode
Tag(s) : Arithmetics, Notation System
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Reverse Polish notation (RPN) also called post-fixed notation, is a mathematic notation of arithmetic expressions where operands (numbers) are written before the operators (+, -, *, /) while avoiding the use of parentheses. The RPN is primarily adapted to a technical computer / electronic use, and has the characteristic of avoiding the use of parentheses.
The NPI notation displays operands before operators. This notation implies to write operands first and then the order of operations.
Example: a × (b + c) is written a b c + ×
The conversion algorithm into RPN is called the Shunting-yard method.
The notation has the advantage that it no longer uses parentheses, reducing errors, and is sometimes faster than a normal calculation. RPN is also used in some programming languages like Forth, but also in HP calculators and in some scientific computations where the gain up and computation time can be interesting.
dCode retains ownership of the "Reverse Polish Notation" source code. Any algorithm for the "Reverse Polish Notation" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Reverse Polish Notation" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Reverse Polish Notation" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Reverse Polish Notation" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Reverse Polish Notation on dCode.fr [online website], retrieved on 2025-04-26,