Post Reply 
HP-42s Entering 4 complex numbers on the stack
05-28-2023, 05:14 PM
Post: #10
RE: HP-42s Entering 4 complex numbers on the stack
Here we go. I was being silly, just R/S will do. I have cheated a bit, using LSTO (only available in Free42/DM42/Plus42, not the original 42S) not to consume a global variable. We still need a variable for the matrix, no way to put it on the stack and at the same time to fill the stack! Just edit the matrix, exit the editor, press R/S, and done. Compared to my previous solution, you start with zeros rather than previously entered values. Maybe a drawback in some cases? Oh well...

00 { 47-Byte Prgm }
01▸LBL "CPX"
02 1
03 ENTER
04 4
05 NEWMAT
06 ENTER
07 COMPLEX
08 EDIT
09 STOP
10 LSTO "CSTK"
11 INDEX "CSTK"
12 RCLEL
13 I+
14 RCLEL
15 I+
16 RCLEL
17 I+
18 RCLEL
19 RTN
20 END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-42s Entering 4 complex numbers on the stack - Vincent Weber - 05-28-2023 05:14 PM



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