43S Alternative key layout --> WP43C

General discussion about calculators, Swiss Micros or otherwise
User avatar
H2X
Posts: 554
Joined: Tue Apr 25, 2017 6:00 am
Location: Norway

Re: 43S Alternative key layout --> WP43C

Post by H2X » Wed Mar 25, 2020 7:22 am

Jaymos wrote:
Tue Mar 24, 2020 11:22 pm
Following the posts above re 2D vector sums, and my proposal posted above to split the use of the sigma operator for statistical plotting and regression, and for vector arithmetic, I edited my stats graph code to include a VECT mode, where a vector series is plotted starting from the origin and following the vectors in the table.

...

Thoughts on whether this is useful or wanted?
I'm interested!
DM42 #40 running WP43C | DM41X #50
The earth is flat. It just appears round because it is massive and curves spacetime.

User avatar
Jaymos
Posts: 511
Joined: Sun Nov 04, 2018 6:03 pm
Location: Cape Town

Re: 43S Alternative key layout --> WP43C

Post by Jaymos » Sun Mar 29, 2020 10:10 pm

H2X wrote:
Wed Mar 25, 2020 7:22 am
Jaymos wrote:
Tue Mar 24, 2020 11:22 pm
Following the posts above re 2D vector sums, and my proposal posted above to split the use of the sigma operator for statistical plotting and regression, and for vector arithmetic, I edited my stats graph code to include a VECT mode, where a vector series is plotted starting from the origin and following the vectors in the table.

...

Thoughts on whether this is useful or wanted?
I'm interested!
Well, I added the bells and whistles to enter this vector data thing. And started to describe the process for my document.

I also spent a lot of time today to figure out how export and import the STATS data, or vectors, from the calculator into a CSV file on the flash drive. The loading/saving is to a file from within the calculator, and this works now. As I described in an earlier post, I want the 2x400 points to not reside in calculator, but will be saved and loaded from a CSV file on the disk. I still need to do the CSV code, which will take some time still, but it is coming.

Next exciting thing that will come very soon is to save the complete stack, or even the stack and all registers to a CSV text file. That will be super useful for those 2000 digits integer math and primes ;-).

A question is do I need to make another special key combination (say Shift-ENTER) to dump the registers, or do I just combine the dump registers feature onto the system SNAPshot command, Shift-DISP? I do like the idea of doing a full dump in one go, that is a BMP file and a CSV file. Shift-DISP would do two things then: save the screen to file with a name like 20200329-23554146.BMP and at the same time save the complete stack and registers 00 through 99 to a file 20200329-23554146.CSV. (BTW, the file name is made up of yyyymmdd-hhmmsscc where cc is decimal seconds or centiseconds.)

Have a look at the vector entry and graphing example below, written for the documentation.

Below that, look at the latest simulator mockup which includes the changing of F1 and F6.

Any comments welcome.
.
.
Clipboard21.png
Clipboard21.png (142.53 KiB) Viewed 164 times
.
.
Image
Jaco Mostert
Elec Eng, South Africa
WP34C, HP42S, DM42 for complex math; 35S, 28C, 32Sii, WP34S, EL-506P, EL-W506, PB700; owned FX702P & 11C; used 67 & 85. iOS: 42s (Byron), Free42, WP31S/34S, HCalc.
43S operators right. DM42 sn. 03818.

User avatar
H2X
Posts: 554
Joined: Tue Apr 25, 2017 6:00 am
Location: Norway

Re: 43S Alternative key layout --> WP43C

Post by H2X » Mon Mar 30, 2020 8:02 am

Jaymos wrote:
Sun Mar 29, 2020 10:10 pm
Next exciting thing that will come very soon is to save the complete stack, or even the stack and all registers to a CSV text file. That will be super useful for those 2000 digits integer math and primes ;-).
Nice!
Jaymos wrote:
Sun Mar 29, 2020 10:10 pm
A question is do I need to make another special key combination (say Shift-ENTER) to dump the registers...
I haven't thought this through yet, but since a printer icon is already there - maybe print to file might be a sensible default, if no printer is available? Maybe provide options after pressing g[printer icon] about what / where to print?
DM42 #40 running WP43C | DM41X #50
The earth is flat. It just appears round because it is massive and curves spacetime.

User avatar
Jaymos
Posts: 511
Joined: Sun Nov 04, 2018 6:03 pm
Location: Cape Town

Re: 43S Alternative key layout --> WP43C

Post by Jaymos » Mon Mar 30, 2020 4:09 pm

H2X wrote:
Mon Mar 30, 2020 8:02 am
Jaymos wrote:
Sun Mar 29, 2020 10:10 pm
Next exciting thing that will come very soon is to save the complete stack, or even the stack and all registers to a CSV text file. That will be super useful for those 2000 digits integer math and primes ;-).
Nice!
Jaymos wrote:
Sun Mar 29, 2020 10:10 pm
A question is do I need to make another special key combination (say Shift-ENTER) to dump the registers...
I haven't thought this through yet, but a printer icon is already there. Maybe print to file might be a sensible default, if no printer is available? Maybe provide options after pressing g[printer icon] about what / where to print?
That is very interesting that you mention the print menu. I would take that a bit further, and propose the following:

I could add an option in the print softmenu called [TOFILE], i.e. a CheckBox, when ticked, the printer output goes to CSV files. I like that a lot. And I agree, it can default to "ON".
.
Clipboard22.png
Clipboard22.png (4.09 KiB) Viewed 75 times
The existing PRINT menu has the required buttons already.

I could use pSTK (Existing function, for 8 registers X through D).
I would need to add a new function in the PRINT menu to print all registers, i.e. pALL (for 00-99, 100-111 (X through L) & local registers 112-maxlocal_registers)).

So, to summarise:

1. Shift-DISP does a SNAPshot as well as an 8 register stack dump to CSV file.
2. PRINT menu : a TOFILE option.
3. PRINT menu : the existing pSTK activated, and if TOFILE is active it exports stack registers X through K
4. PRINT menu : the existing pREGS activated and if TOFILE is active it exports registers 00 through 99.
5. PRINT menu : the existing pLCD activated and if TOFILE is active it does a SNAPshot.


This is a good idea Haakon ...
Jaco Mostert
Elec Eng, South Africa
WP34C, HP42S, DM42 for complex math; 35S, 28C, 32Sii, WP34S, EL-506P, EL-W506, PB700; owned FX702P & 11C; used 67 & 85. iOS: 42s (Byron), Free42, WP31S/34S, HCalc.
43S operators right. DM42 sn. 03818.

User avatar
Jaymos
Posts: 511
Joined: Sun Nov 04, 2018 6:03 pm
Location: Cape Town

Re: 43S Alternative key layout --> WP43C

Post by Jaymos » Mon Mar 30, 2020 4:11 pm

I am in two minds on the setting. I like the direct CB selection for "TOFILE", but the correct place for the is in the pMODE setting, which has options 0,1,2 for printing, 3 for serial transmission, and here option 4 would have been ideal for TOFILE.

But I like the visibility of TOFILE as a CB option more.

J
Jaco Mostert
Elec Eng, South Africa
WP34C, HP42S, DM42 for complex math; 35S, 28C, 32Sii, WP34S, EL-506P, EL-W506, PB700; owned FX702P & 11C; used 67 & 85. iOS: 42s (Byron), Free42, WP31S/34S, HCalc.
43S operators right. DM42 sn. 03818.

User avatar
H2X
Posts: 554
Joined: Tue Apr 25, 2017 6:00 am
Location: Norway

Re: 43S Alternative key layout --> WP43C

Post by H2X » Mon Mar 30, 2020 6:47 pm

Jaymos wrote:
Mon Mar 30, 2020 4:09 pm
... CSV files...
Which columns do you have in mind?
DM42 #40 running WP43C | DM41X #50
The earth is flat. It just appears round because it is massive and curves spacetime.

User avatar
Jaymos
Posts: 511
Joined: Sun Nov 04, 2018 6:03 pm
Location: Cape Town

Re: 43S Alternative key layout --> WP43C

Post by Jaymos » Mon Mar 30, 2020 7:20 pm

H2X wrote:
Mon Mar 30, 2020 6:47 pm
Jaymos wrote:
Mon Mar 30, 2020 4:09 pm
... CSV files...
Which columns do you have in mind?
I think just REGISTER, VALUE.
I made a sample below.
Any changes?

I will re-order it X-K, and 00 to 99.

Code: Select all

REGISTER, VALUE
K, 0.
J, 0.
I, 0.
L, 7
D, 3.141592653589793238462643383279503
C, 10.87312731383618094144114988541065 + ix13.59140914229522617680143735676331
B, 4 + ix5
A, 1234#10 (word size, 64)
T, 10011010010#2 (word size, 64)
Z, 49
Y, 6
X, 6
R99, 0.
R98, 0.
R97, 0.
...
R28, 0.
R27, 225251798594466661409915431774713195745814267044878909733007331390393510002687
R26, 4776913109852041418248056622882488319
R25, 195845982777569926302400511
R24, 7369130657357778596659
R23, 18446744082299486207
R22, 18014398241046527
R21, "Primes: Carol, Kynea, repunit, Woodal"
R20, 842468587426513207
R19, 2646693125139304345
R18, "37 digits of pi, Reg19 / Reg20."
R17, 12602123297335631
R16, 80435758145817515
R15, -80538738812075974
R14, "Reg 15, 16 & 17 have: The 3 cubes, 42."
R13, -472715493453327032
R12, -569936821113563493509
R11, 569936821221962380720
R10, "Reg 11,12 & 13 have: The 3 cubes, 3."
...
R01, 0.
R00, 0.
Jaco Mostert
Elec Eng, South Africa
WP34C, HP42S, DM42 for complex math; 35S, 28C, 32Sii, WP34S, EL-506P, EL-W506, PB700; owned FX702P & 11C; used 67 & 85. iOS: 42s (Byron), Free42, WP31S/34S, HCalc.
43S operators right. DM42 sn. 03818.

User avatar
H2X
Posts: 554
Joined: Tue Apr 25, 2017 6:00 am
Location: Norway

Re: 43S Alternative key layout --> WP43C

Post by H2X » Mon Mar 30, 2020 7:50 pm

Jaymos wrote:
Mon Mar 30, 2020 7:20 pm
H2X wrote:
Mon Mar 30, 2020 6:47 pm
Jaymos wrote:
Mon Mar 30, 2020 4:09 pm
... CSV files...
Which columns do you have in mind?
I think just REGISTER, VALUE.
I made a sample below.
Any changes?

I will re-order it X-K, and 00 to 99.

Code: Select all

REGISTER, VALUE
K, 0.
J, 0.
I, 0.
L, 7
D, 3.141592653589793238462643383279503
C, 10.87312731383618094144114988541065 + ix13.59140914229522617680143735676331
B, 4 + ix5
A, 1234#10 (word size, 64)
T, 10011010010#2 (word size, 64)
Z, 49
Y, 6
X, 6
R99, 0.
R98, 0.
R97, 0.
...
R28, 0.
R27, 225251798594466661409915431774713195745814267044878909733007331390393510002687
R26, 4776913109852041418248056622882488319
R25, 195845982777569926302400511
R24, 7369130657357778596659
R23, 18446744082299486207
R22, 18014398241046527
R21, "Primes: Carol, Kynea, repunit, Woodal"
R20, 842468587426513207
R19, 2646693125139304345
R18, "37 digits of pi, Reg19 / Reg20."
R17, 12602123297335631
R16, 80435758145817515
R15, -80538738812075974
R14, "Reg 15, 16 & 17 have: The 3 cubes, 42."
R13, -472715493453327032
R12, -569936821113563493509
R11, 569936821221962380720
R10, "Reg 11,12 & 13 have: The 3 cubes, 3."
...
R01, 0.
R00, 0.
Reasonable! Possibly an extra column for information like "(word size, 64)"? I notice some extra unquoted commas here and there, if this is a problem for some spreadsheet applications I'm sure it can be worked out.
DM42 #40 running WP43C | DM41X #50
The earth is flat. It just appears round because it is massive and curves spacetime.

User avatar
Jaymos
Posts: 511
Joined: Sun Nov 04, 2018 6:03 pm
Location: Cape Town

Re: 43S Alternative key layout --> WP43C

Post by Jaymos » Mon Mar 30, 2020 8:19 pm

H2X wrote:
Mon Mar 30, 2020 7:50 pm
Jaymos wrote:
Mon Mar 30, 2020 7:20 pm
H2X wrote:
Mon Mar 30, 2020 6:47 pm


Which columns do you have in mind?
I think just REGISTER, VALUE.
I made a sample below.
Any changes?

I will re-order it X-K, and 00 to 99.

Code: Select all

REGISTER, VALUE
K, 0.
J, 0.
I, 0.
L, 7
D, 3.141592653589793238462643383279503
C, 10.87312731383618094144114988541065 + ix13.59140914229522617680143735676331
B, 4 + ix5
A, 1234#10 (word size, 64)
T, 10011010010#2 (word size, 64)
Z, 49
Y, 6
X, 6
R99, 0.
R98, 0.
R97, 0.
...
R28, 0.
R27, 225251798594466661409915431774713195745814267044878909733007331390393510002687
R26, 4776913109852041418248056622882488319
R25, 195845982777569926302400511
R24, 7369130657357778596659
R23, 18446744082299486207
R22, 18014398241046527
R21, "Primes: Carol, Kynea, repunit, Woodal"
R20, 842468587426513207
R19, 2646693125139304345
R18, "37 digits of pi, Reg19 / Reg20."
R17, 12602123297335631
R16, 80435758145817515
R15, -80538738812075974
R14, "Reg 15, 16 & 17 have: The 3 cubes, 42."
R13, -472715493453327032
R12, -569936821113563493509
R11, 569936821221962380720
R10, "Reg 11,12 & 13 have: The 3 cubes, 3."
...
R01, 0.
R00, 0.
Reasonable! Possibly an extra column for information like "(word size, 64)"? I notice some extra unquoted commas here and there, if this is a problem for some spreadsheet applications I'm sure it can be worked out.
Sure, I'll include that.
J
Jaco Mostert
Elec Eng, South Africa
WP34C, HP42S, DM42 for complex math; 35S, 28C, 32Sii, WP34S, EL-506P, EL-W506, PB700; owned FX702P & 11C; used 67 & 85. iOS: 42s (Byron), Free42, WP31S/34S, HCalc.
43S operators right. DM42 sn. 03818.

Post Reply