Post Reply 
(50g) Quadratic Regression
02-21-2015, 02:33 PM
Post: #1
(50g) Quadratic Regression
The program QUADRES finds a quadratic fit using the matrix ∑DAT. The result is a column vector:

[[ c ]
[ b ]
[ a ]]

from y=a*x^2 + b*x + c

Program:
Code:
<< ∑DAT 1 COL- VANDERMONDE DUP SIZE OBJ→ DROP DROP 3 2 →LIST {1,1}
SWAP SUB LSQ >>

Example:
∑DAT:
[[ 2 .23 ]
[ 3 .58 ]
[ 4 .96 ]
[ 8 1.85]
[16 3.66]]

Results:
[[ -.302930140195 ]
[ .304114954514 ]
[ -3.5562830888E-3 ]]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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