Posted by:
wowbagger
(
)
Date: April 29, 2024 12:53PM
bradley Wrote:
-------------------------------------------------------
>
> RPN (reverse polish notation) has no precedence
> rules or parentheses, just left to right
> evaluation like the HP35 calculator.
>
> 2 2 + 8 2 / *
Minor correction, this is not quite left to right.
Assuming 8/2(2+2) = (8/2)*(2+2),
It would be 8↑2/2↑2+*.
If you wanted (8/(2*(2+2)),
It would be 8↑2↑2↑2+*/.
Both of which are going left to right in RPN.
Long live Jan Lukasiewicz, the P in RPN!!!
https://en.wikipedia.org/wiki/Jan_%C5%81ukasiewiczAnd in case any of you want to be the life of the party this weekend, you can further explain how HP et al made his Polish logic go in reverse.
https://en.wikipedia.org/wiki/Polish_notationOn a nerd note, every math major on the planet is familiar with this notation because of their intro to Abstract Algebra classes.
My God, I am cool!!
Edited 1 time(s). Last edit at 04/29/2024 01:01PM by wowbagger.