Post Reply 
HP 80: What the heck is going on behind the curtain?
11-27-2019, 10:57 PM
Post: #3
RE: HP 80: What the heck is going on behind the curtain?
(11-27-2019 10:49 PM)Paul Dale Wrote:  
(11-27-2019 10:35 PM)Dave Britten Wrote:  Press Shift-mean-x (the ->Sigma function) and now the sum of x is back in X, and n is back in Y. From here, you can continue using Sigma+/- to accumulate data. This reversal seems to happen instantly, unlike the forward calculation of mean and standard deviation, which makes it seem like it's pulling the numbers back out of temporary registers...

The reversal is multiplying the average by n and rearranging the stack. I doubt anything is stored in a temporary register.


Pauli

That does appear to be what's going on, based on a bit more playing. Shift-mean-x copies T to Y, then also multiplies X by T.

Sigma+ adds X to Y, X^2 to T, increments Z, and drops the stack, losing the last entered x value and copying sum of x^2 from T to Z. Sigma- presumably does the same, with subtraction and decrementing instead.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 80: What the heck is going on behind the curtain? - Dave Britten - 11-27-2019 10:57 PM



User(s) browsing this thread: 1 Guest(s)