5 ms·
Actually, to do "3+4" you enter 3 <enter> 4 + That's it. Note that this is one keystroke less than the regular calculators used by mere mortals, and that is w
by MegaDeKay 9y ago
Actually, to do "3+4" you enter 3 <enter> 4 +
That's it. Note that this is one keystroke less than the regular calculators used by mere mortals, and that is why RPN rules.
Source: my daily driver HP-15C that I've had since around 1985. Works perfectly and has only gone through two or three sets of batteries. I'd swear it was solar powered.
- ZenoArrow 9y agoIsn't that the same number of keystrokes? [3] [+] [4] [=] [3] [Enter] [4] [+] Both use four keystrokes.
- jaclaz 9y agoYes, bad example. See here: http://calculatorauthority.com/why-use-a-reverse-polish-notation-calculator-over-an-algebraic-calculator/ http://calculatorauthority.com/why-use-a-reverse-polish-nota... >For example, we want to compute “(13+3)÷(4×2)” using a calculator of algebraic notation (not a scientific one) then we have to do many steps to reach the answer. Firstly, we have to compute “(13+3)” and then we will save the answer to the memory of the calculator. Then we have to compute the calculation in the denominator i.e. “(4×2)” and we have to save this answer too to the memory of the calculator. In the end, we will bring both the answers and will perform the last operation of division. This procedure has taken a reasonable amount of time. This thing can be avoided by using RPN calculator. In RPN calculator, we have to insert just a single line expression as “13 Enter 3 + 4 Enter 2 × ÷” and the answer will be computed instantly. More generally the use of a stack (in the case of some calculators an actually visible stack) helps a lot with complex formulas.
- carussell 9y ago[1 3 Enter 3 + 4 Enter 2 × ÷] is 10 button presses for RPN. [1 3 + 3 = ÷ 4 ÷ 2 =] is also 10 button presses, and how I would have entered it on an infix $10 TI-30XA during an exam. (At least, it's how I would have entered it if the figures weren't so small.) You could argue that it's cheating to "cook" the input beforehand so that the '4×2' divisor becomes two '4' and '2' divisors, but then you would have to ignore that RPN requires its own pre-cooked input (and that of the two, the RPN form is the one that relies on a more extensive cook).
- tremendo 9y agoLOL why bother with a calculator? 16 ÷ 8 easy! I always think of RPN as somewhat akin to using VIM (editor), once you learn it, it becomes unconscious, automatic. I for one don't see how the RPN form relies "on a more extensive cook".
- carussell 9y agoLooks like you skipped over this part of my comment in your attempt to be condescending: > At least, it's how I would have entered it if the figures weren't so small.
- tremendo 9y agoI have to apologize. What actually came to mind was that I know some probably couldn't make the mental leap to again divide by the other factor when they see the multiplication symbol there as written, then reaching for the calculator. I totally see now how it appears I was attempting to be condescending, sorry.
- jaclaz 9y agoYes, you replaced (correctly) a x with a /, and this does require some (little) effort. There is no "cooking" in the RPN input, the way you input is a little more similar to how you do manually operations, and in the order numbers are written from left to right, but of course beauty is only in the eye of the beholder. A (as well small) advantage is that on RPN you "see" that you are dividing 16 by 8, particularly - as hinted previously - when you have a RPN calculator that allows you to visualize the stack you can see better "partial" results. Now be nice, and do (13+3)/(3x(SQR(4+2))). [1 3 Enter 3 + 3 Enter 4 Enter 2 + SQR * /]
- carussell 9y ago> There is no "cooking" in the RPN input, the way you input is a little more similar to how you do manually operations You do your pen and paper algebra in RPN? The point of my "cooked" input comment wasn't to say that the mental overhead to convert to RPN is complicated or cannot come naturally after some time getting used to it; it was a defense of my swapping the division operation to multiply by the reciprocal. The idea is that if I hadn't pre-emptively addressed this in my first comment, I expected for someone to claim that I was cheating and feeding in "cooked" input for the infix case. My point is that if you recognize that converting to RPN is trivial and want to count that as a zero-cost operation when scoring the efficiency of RPN, then you have to recognize that converting the divisor to a reciprocal factor is just as trivial (moreso, really) and should be scored as a zero-cost operation, too. Otherwise, what you have is an inconsistent standard where the infix conversion gets arbitrarily counted against the infix case, but the RPN conversion is somehow "free". > Now be nice, and do (13+3)/(3x(SQR(4+2))) I got 15 button presses, compared to your 14. I can live with that, given this is a calculator that can be picked up for $10. And that's the biggest savings, considering that the other things I had to worry about as a student were being gouged by mandatory meal plans and expensive, low-quality, on-campus housing. FWIW, I actually like postfix notation.[1] 1. https://news.ycombinator.com/item?id=2213066 https://news.ycombinator.com/item?id=2213066
- tremendo 9y agoRight, where RPN really shines is in more complex operations where other calculators need parenthesis to group sub-operations, whereas you can just push stuff up the stack, and it in turn can be rolled, swapped… definitely a nerds' tool of choice