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!

Tool to write in Reverse Polish Notation RPN: a post-pifex notation which allows to write mathematical expression without parenthesis.

Answers to Questions

What is the Reverse Polish Notation? (Definition)

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.

How to write using Reverse Polish Notation?

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.

Who uses Reverse Polish Notation?

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.

Source code

dCode retains ownership of the source code of the script Reverse Polish Notation online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Reverse Polish Notation script for offline use on PC, iPhone or Android, ask for price quote on contact page !