Toot

Written by πŸ’‘πš‚π—†π–Ίπ—‹π—π—†π–Ίπ—‡ π™°π—‰π—‰π—ŒπŸ“± on 2024-10-07 at 03:21

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

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113263987261690320
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
227.300243 milliseconds
Gemini-to-HTML Time
0.287441 milliseconds

This content has been proxied by September (3851b).