Post Reply 
HP 48G Linear Regression Best Fit Line
12-22-2021, 09:34 PM (This post was last modified: 12-22-2021 09:53 PM by Rodger Rosenbaum.)
Post: #50
RE: HP 48G Linear Regression Best Fit Line
(12-22-2021 09:25 PM)MNH Wrote:  
(12-22-2021 02:26 AM)Rodger Rosenbaum Wrote:  << LR SWAP DROP DUP CORR DUP SIGN 4 ROLLD SQ / SWAP INV -
2 / DUP SQ 1 + √ ROT * + DUP ΣX * NEG ΣY + NΣ / { 2. 1. } →ARRY >>

{ 2. 1. } →ARRY

I'd prefer leaving the output as individual objects on the stack.

The subsequent ORTH program as it stands now needs them to be a 2x1 matrix, but rather than doing it in ORTH, you could add "{ 2. 1. } →ARRY" right after the call to ORTH in OFIT.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 48G Linear Regression Best Fit Line - Rodger Rosenbaum - 12-22-2021 09:34 PM



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