Swap X Y in RPN Mode
|
02-25-2023, 08:39 PM
Post: #1
|
|||
|
|||
Swap X Y in RPN Mode
I dusted off the HP Prime and updated it to the latest firmware on the HP site. I've been using HP calculators since the 41C and they've all had a dedicated button to swap X Y registers. It annoying without it using RPN at least for me. Probably why it's been been sitting in a desk drawer.
Is there another solution other than hitting enter to load the number on the stack and use roll down? Can I assign a program to a key I down use anymore? The custom labels for the keys on the 41C would be handy for this Thanks. |
|||
02-26-2023, 03:24 AM
Post: #2
|
|||
|
|||
RE: Swap X Y in RPN Mode
Prime has a dedicated X<>Y key in RPN mode too. It's the comma key, between the parentheses key and the Enter key. See that tiny symbol next to the comma? It's the SWAP symbol, in the Prime universe.
<0|ɸ|0> -Joe- |
|||
02-27-2023, 01:33 PM
Post: #3
|
|||
|
|||
RE: Swap X Y in RPN Mode | |||
02-27-2023, 04:09 PM
Post: #4
|
|||
|
|||
RE: Swap X Y in RPN Mode
One nit: On the Prime you *can't* swap X and Y since there are no X and Y registers. Like forth, you have an arbitrary number of stack levels. On the Prime they are numbered. So you swap levels 1 and 2, not X and Y.
|
|||
02-27-2023, 09:14 PM
Post: #5
|
|||
|
|||
RE: Swap X Y in RPN Mode
(02-27-2023 04:09 PM)KeithB Wrote: One nit: On the Prime you *can't* swap X and Y since there are no X and Y registers. Like forth, you have an arbitrary number of stack levels. On the Prime they are numbered. So you swap levels 1 and 2, not X and Y. Aha, quite right! But what should we call it? "1<>2" looks goofy. Maybe just "SWAP" like in RPL? (Related note: Prime's RPN is NOT the same as RPL. Prime's RPN stack is limited to 128 objects, maximum.) Prime's keyboard calls it Unicode 292D, "⤭", but that's not easy to type on some systems, and I personally find it annoyingly unreadable. <0|ɸ|0> -Joe- |
|||
02-27-2023, 09:30 PM
Post: #6
|
|||
|
|||
RE: Swap X Y in RPN Mode
(02-27-2023 04:09 PM)KeithB Wrote: So you swap levels 1 and 2, not X and Y. Even if the stack levels are numbered, they can still represent "x" and "y". On RPL Calculators the key x^2 squares the value of Stack Level 1 (same with root) and y^x works the same on RPL (Level 2 ^ Level 1) and classic RPN (y^x). Only the prime messes everything up. The key is labeld x^y but don't work like x^y (on the HP-35). It works instead like y^x on all other RPL & RPN Calculators. My calculators - former: CBM PR100, HP41CV, HP11C, HP28S - current: HP48G, HP35S, Prime, DM41X, DM42, HP12C |
|||
02-27-2023, 10:20 PM
Post: #7
|
|||
|
|||
RE: Swap X Y in RPN Mode
Using Prime in RPN mode is an exercise in frustration to be honest...
|
|||
03-01-2023, 02:57 PM
Post: #8
|
|||
|
|||
RE: Swap X Y in RPN Mode
(02-25-2023 08:39 PM)Mgerbasio Wrote: I dusted off the HP Prime and updated it to the latest firmware on the HP site. I've been using HP calculators since the 41C and they've all had a dedicated button to swap X Y registers. It annoying without it using RPN at least for me. Probably why it's been been sitting in a desk drawer. Sure. The ","-key works as swap. If you look really closely, you will see a tine Swap symbol on th key. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)