Statistical registers assignments in HP RPN calculators - 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: Statistical registers assignments in HP RPN calculators (/thread-19825.html) |
Statistical registers assignments in HP RPN calculators - brouhaha - 04-18-2023 07:53 AM 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:
RE: Statistical registers assignments in HP RPN calculators - Paul Dale - 04-18-2023 12:20 PM Wow, that's pretty crazily mixed up. RE: Statistical registers assignments in HP RPN calculators - Dave Britten - 04-18-2023 01:15 PM 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 RE: Statistical registers assignments in HP RPN calculators - AndiGer - 04-19-2023 06:13 PM 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) |