Post Reply 
Enter key ignored?
10-18-2023, 09:20 PM
Post: #1
Enter key ignored?
Is there any difference entering:
0
Enter
6
enter
2
/
1
+
*

and

0
Enter
6
enter
2
/
enter
1
+
*

I am getting the same result. Is it a stack overlow?
Find all posts by this user
Quote this message in a reply
10-19-2023, 02:05 AM
Post: #2
RE: Enter key ignored?
On what machine? It matters for this question....

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
10-19-2023, 03:02 AM (This post was last modified: 10-19-2023 03:06 AM by teenix.)
Post: #3
RE: Enter key ignored?
For the 67

Code:


         Stack  X Y Z T
0               0 0 0 0
Enter           0 0 0 0
6               6 0 0 0
enter           6 6 0 0
2               2 6 0 0
/               3 0 0 0
1               1 3 0 0
+               4 0 0 0
*               0 0 0 0

and

0               0 0 0 0
Enter           0 0 0 0
6               6 0 0 0
enter           6 6 0 0
2               2 6 0 0
/               3 0 0 0
enter           3 3 0 0
1               1 3 0 0
+               4 0 0 0
*               0 0 0 0

cheers

Tony
Find all posts by this user
Quote this message in a reply
10-19-2023, 03:08 AM (This post was last modified: 10-20-2023 08:14 AM by brouhaha.)
Post: #4
RE: Enter key ignored?
In traditional HP RPN, ENTER disabled stack lift, so while ENTER duplicates X into Y, pushing Y and Z into Z and T, a number keyed in immediately after ENTER does not lift the stack again.

Most calculators that use traditional RPN have a manual appendix describing stack lift disable, and enumerate what operations do it.

RPL.calculators (28, 48, 49, 50) do not work the same way.
Find all posts by this user
Quote this message in a reply
10-19-2023, 05:54 PM
Post: #5
RE: Enter key ignored?
(10-19-2023 03:08 AM)brouhaha Wrote:  RPL.calculators (28, 48, 49, 50) do not work the same way.

Specifically, if there is an open command line (i.e. you are typing stuff in), Enter evaluates the command line. If there is no command line, Enter duplicates the object on stack level 1. If the stack is empty, pressing Enter gives a "Too Few Arguments" error.
Find all posts by this user
Quote this message in a reply
10-19-2023, 10:25 PM
Post: #6
RE: Enter key ignored?
and let's not mention the weirdness of the 9100...

-J
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)