(50g) Quadratic Regression - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (50g) Quadratic Regression (/thread-3159.html) |
(50g) Quadratic Regression - Eddie W. Shore - 02-21-2015 02:33 PM 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} Example: ∑DAT: [[ 2 .23 ] [ 3 .58 ] [ 4 .96 ] [ 8 1.85] [16 3.66]] Results: [[ -.302930140195 ] [ .304114954514 ] [ -3.5562830888E-3 ]] |