Enter RPN

R47: Swaps
Login

R47: Swaps

Foundation

Every HP RPN user should know about the x⇋y key already. It’s as close to foundational as you could ask, going clear back to the HP-35. My collection doesn’t go back nearly that far, but this function is present on nearly every HP calculator I have.

Exceptions

These exceptions make for interesting case studies:

On these RPL machines, HP could have labeled the function 1⇋2 to be more consistent with their legacy devices, since it swaps the first and second stack locations. One can but speculate why they chose the vague SWAP label instead.

RPN

Every non-RPL HP calculator I have here has a top-level x⇋y key, which we typically find necessary in any case where we are facing a need to make a two-argument function call where the order matters — subtraction, division, exponentiation… — but where our chosen order of intermediate calculations produced the values in the “wrong” order. It is often possible to proceed without the swap and recover after, but it may lose precision, as with ÷ 1/𝑥 where you end up dividing twice as compared with the more RPN-ish x⇋y then divide.

R47

All of this brings me to the SwissMicros R47, which not only has an x⇋y button placed right next to its properly sized and placed ENTER key, it also offers these soft menu functions:

(You may now wish to return to my R47 article index.)

License

This work is © 2025-2026 by Warren Young and is licensed under CC BY-NC-SA 4.0