42S statistics registers
|
11-20-2019, 09:03 AM
Post: #1
|
|||
|
|||
42S statistics registers
It's a regular niggle to me, and I wondered: is there any reason why HP didn't make access to the cumulative statistics values any easier than semi-anonymous numbered registers?
I know that it was the same on e.g. the 15C, but that at least had them printed on the back. The 42S adds another 7 more. I don't use them often enough to remember which is which, so have to keep getting out my quick-ref card to check (other than R16 being n). It wouldn't have killed HP to add a few more keys to the STAT menu and presented them by name? I know I could easily enough do that myself, or there's William Solano's program, which looks quite good. I'm just wondering why HP didn't add it in the first place? Because the 41 didn't have it either? Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47 Casio, Rockwell 18R |
|||
11-20-2019, 02:19 PM
Post: #2
|
|||
|
|||
RE: 42S statistics registers
(11-20-2019 09:03 AM)cdmackay Wrote: It's a regular niggle to me, and I wondered: is there any reason why HP didn't make access to the cumulative statistics values any easier than semi-anonymous numbered registers? I agree that adding STAT menu labels would have been a nice touch, but recall that where the Stat registers are located (which registers), can be changed by the user via the SREG command (S=Sigma char) and also that if linear mode is enabled (LINS command, again S=Sigma), only a subset of the registers are used at all. With all that flexibility, it probably doesn't make sense to do something like print them on the keyboard (as was done with several others models in the Pioneer line). --Bob Prosperi |
|||
11-20-2019, 03:20 PM
Post: #3
|
|||
|
|||
RE: 42S statistics registers
I have a little program that makes this trivially easy. Just XEQ the appropriate label and it will give you the summation register in X, regardless of your current stat reg location. It also spits out an error if you try to recall one of the extended sums while in linear mode. It's written so as not to disturb the stack.
Code: 00 { 239-Byte Prgm } StatRegs.zip (Size: 323 bytes / Downloads: 4) |
|||
11-20-2019, 04:39 PM
Post: #4
|
|||
|
|||
RE: 42S statistics registers
Nice program, Dave.
I do not understand the use of flags 61,62 and 63, however. I would think flag 60 is all you need: if it is set, all 13 statistics registers are used, whatever the fitting model is that is chosen. And I would’ve written Code: Rv Code: SF 30 Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
11-20-2019, 05:50 PM
Post: #5
|
|||
|
|||
RE: 42S statistics registers
(11-20-2019 04:39 PM)Werner Wrote: Nice program, Dave. Flags 61, 62, and 63 indicate which of the different models/sums are invalid based on the data you've entered. If you supply a zero for any of the X or Y values, then the sums that take the logarithm of those values are no longer valid. These flags are checked to prevent returning that invalid/incorrect data. |
|||
11-20-2019, 06:52 PM
Post: #6
|
|||
|
|||
RE: 42S statistics registers
thanks very much Bob, and Dave for the excellent program and explanation; marvellous!
Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47 Casio, Rockwell 18R |
|||
11-20-2019, 09:03 PM
Post: #7
|
|||
|
|||
RE: 42S statistics registers
(11-20-2019 05:50 PM)Dave Britten Wrote: Flags 61, 62, and 63 indicate which of the different models/sums are invalid based on the data you've entered. If you supply a zero for any of the X or Y values, then the sums that take the logarithm of those values are no longer valid. These flags are checked to prevent returning that invalid/incorrect data. Never too old to learn ;-) Thanks for the explanation! Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
11-21-2019, 12:04 PM
Post: #8
|
|||
|
|||
RE: 42S statistics registers
One more thing: if you enable LINΣ mode, the 7 ln-type registers are not valid either.
Flags 61, 62 and 63 will however only be set the first time you use Σ+. So I shamelessly (but gratefully) copied your program, but I use Code: FS? 60 BTW where did you find this info on flags 61-63? Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
11-21-2019, 12:21 PM
Post: #9
|
|||
|
|||
RE: 42S statistics registers
(11-21-2019 12:04 PM)Werner Wrote: One more thing: if you enable LINΣ mode, the 7 ln-type registers are not valid either. That's a good point. Note that you'll need to change the flag tests like this if you want an "or" condition that goes to 99 if either flag is set: Code: FC? 60 I believe I got the flag info from the 42S manual, bottom of page 279, as well as by experimenting to see exactly how those flags behaved. |
|||
11-21-2019, 01:20 PM
Post: #10
|
|||
|
|||
RE: 42S statistics registers
(11-21-2019 12:21 PM)Dave Britten Wrote: Note that you'll need to change the flag tests like this if you want an "or" condition that goes to 99 if either flag is set: But I have to go to 99 when F60 is clear, meaning LINΣ is selected. Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
11-21-2019, 01:34 PM
Post: #11
|
|||
|
|||
RE: 42S statistics registers
(11-21-2019 01:20 PM)Werner Wrote:(11-21-2019 12:21 PM)Dave Britten Wrote: Note that you'll need to change the flag tests like this if you want an "or" condition that goes to 99 if either flag is set: Oh right, I mistakenly inverted the meaning of flag 60 there. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)