Statistical registers assignments in HP RPN calculators
|
04-18-2023, 07:53 AM
(This post was last modified: 04-22-2023 05:25 AM by brouhaha.)
Post: #1
|
|||
|
|||
Statistical registers assignments in HP RPN calculators
In the course of deciding how to add basic statistical functions to my hacked 16C firmware, I first looked at what the other Voyager calculators do, and then the 41C. Considering only those calculators, based on the Nut CPU architecture, HP did three different things. That got me to wondering, so I went through all of the HP RPN calculators that have statistical functions and store the accumulated values in numbered registers (which leaves out the HP-80 and HP-32S). I found a total of FOURTEEN different sets of statistical register assignments. I've listed them below.
The HP-80 peforms single-variable statistics using only the stack. The HP-81 has single-variable statistics as noted in the table, but also a separate set of two-variable statistical functions called "Trend Line" (TL), not covered by my table.. For the modified 16C, I'm trying to decide whether to use the 10C/11C/34C register assignments (very easily done), or to make them movable via a ΣREG function like the 41C family (a little more challenging). EDITED 2023-04-19 - thanks to Dave Britten, Mike, and AndiGer for corrections and updates Code:
|
|||
04-18-2023, 12:20 PM
Post: #2
|
|||
|
|||
RE: Statistical registers assignments in HP RPN calculators
Wow, that's pretty crazily mixed up.
|
|||
04-18-2023, 01:15 PM
Post: #3
|
|||
|
|||
RE: Statistical registers assignments in HP RPN calculators
Very interesting - and bewildering how much they changed up the assignments over the years.
The 80 is probably the strangest of all: there are no stat registers, everything just sits on the stack! The 32S and 32SII do in fact have numbered registers, it's just that you don't encounter the numeric identities unless you're using indirect addressing, and the stat registers appear to only be accessible indirectly on the 32SII (according to the manuals). Nevertheless, the assignments on the 32SII appear to match the 33S: n - 28 Σx - 29 Σy - 30 Σx^2 - 31 Σy^2 - 32 Σxy - 33 |
|||
04-19-2023, 06:13 PM
Post: #4
|
|||
|
|||
RE: Statistical registers assignments in HP RPN calculators
Just powered my 81.
sum y in stack register Z sum y square in stack register Y sum xy in register 12 Register 13 holds highest x value + 1 (x always incrementing when calculating expanded trend line according to the manual example) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)