42S statistics registers - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: 42S statistics registers (/thread-14019.html) |
42S statistics registers - cdmackay - 11-20-2019 09:03 AM 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? RE: 42S statistics registers - rprosperi - 11-20-2019 02:19 PM (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). RE: 42S statistics registers - Dave Britten - 11-20-2019 03:20 PM 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 } [attachment=7846] RE: 42S statistics registers - Werner - 11-20-2019 04:39 PM 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 RE: 42S statistics registers - Dave Britten - 11-20-2019 05:50 PM (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. RE: 42S statistics registers - cdmackay - 11-20-2019 06:52 PM thanks very much Bob, and Dave for the excellent program and explanation; marvellous! RE: 42S statistics registers - Werner - 11-20-2019 09:03 PM (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 RE: 42S statistics registers - Werner - 11-21-2019 12:04 PM 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 RE: 42S statistics registers - Dave Britten - 11-21-2019 12:21 PM (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. RE: 42S statistics registers - Werner - 11-21-2019 01:20 PM (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 RE: 42S statistics registers - Dave Britten - 11-21-2019 01:34 PM (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. |