4/7
So we go from 2 3 4 x + to 2 12 + to 14, which of course is the correct answer for 2+3x4. If instead I wanted to do (2+3)x4, then I would have to change the expression to 4 2 3 + x, so that the next step becomes 4 5 x, and then 20 - again the correct result. Note that RPN doesn't use brackets. To make it do 2+3 first, I had to make that the innermost operation. In other words, when I do that, it IMPLICITLY IS BRACKETED! The same is true of every operation...
=> More informations about this toot | View the thread | More toots from SmartmanApps@dotnet.social
text/gemini
This content has been proxied by September (3851b).