- #1
Synetos
- 40
- 1
So I need some help with RPN, I checked the wiki page but I still don't quite get it. Like I get simple multiplications, aditions etc. But how would you for example write:
Last edited:
Synetos said:So I need some help with RPN, I checked the wiki page but I still don't quite get it. Like I get simple multiplications, aditions etc. But how would you for example write:
Synetos said:So I need some help with RPN, I checked the wiki page but I still don't quite get it. Like I get simple multiplications, aditions etc. But how would you for example write:
Reverse Polish notation (RPN) is a mathematical notation in which operators follow the operands they operate on. It was developed in the 1920s by Polish mathematician Jan Łukasiewicz and is used as an alternative to the more common infix notation.
In traditional infix notation, operators are placed between the operands they operate on, which can lead to ambiguity and require the use of parentheses in more complex expressions. In RPN, the operators always come after the operands, making the expression unambiguous and eliminating the need for parentheses.
RPN can simplify and speed up the process of evaluating mathematical expressions, especially those that involve multiple operations and/or parentheses. It also has a consistent and logical structure, making it easier to learn and use compared to traditional infix notation.
One disadvantage of RPN is that it can be challenging for people who are used to traditional infix notation to learn and use. Additionally, RPN is not as widely used as infix notation, so some people may not be familiar with it.
RPN is commonly used in scientific and mathematical applications that involve complex calculations, such as calculators, computer programs, and engineering software. It is also used in some programming languages, such as Forth and PostScript.