I am new to HP programming and recently acquired a 35s. I was surprised to see it cannot do Quadratic Regression, so I wrote a basic program that will develop the twelve inputs necessary to use the built in 3*3 lin. solve equation.

Q001 LBL Q

Q002 CLVARS

Q003 CLSTK

Q004 SF 10

Q005 (eqn) QUADREG

Q006 (eqn) TOTAL SETS

Q007 PSE

Q008 INPUT N

Q009 STO N

Q010 1

Q011 STO M

Q012 (eqn) X

Q013 PSE

Q014 INPUT X

Q015 STO X

Q016 (eqn) Y

Q017 PSE

Q018 INPUT Y

Q019 STO Y

Q020 STO +D

Q021 RCL X

Q022 *

Q023 STO +H

Q024 RCL Y

Q025 RCL X

Q026 (X SQUARED)

Q027 *

Q028 STO +L

Q029 RCL X

Q030 STO +B

Q031 STO +E

Q032 (X SQUARED)

Q033 STO +C

Q034 STO +F

Q035 STO +I

Q036 RCL X

Q037 3

Q038 (Y to the X)

Q039 STO +G

Q040 STO +J

Q041 RCL X

Q042 4

Q043 (Y to the X)

Q044 STO +K

Q045 RCL M

Q046 STO +A

Q047 RCL N

Q048 RCL A

Q049 X<Y

Q050 GTO Q012

Q051 RTN

When it is finished, there will be values stored in memory locations A through L. Launch and Solve the 3*3 lin. solve built-in EQN and R/S your way through the already-saved values. It will return the X, Y, and Z results of the Quadratically Regressed X,Y inputs from the program.

If anyone knows a better way to do this, please share!

JN

REPLACE THIS TEXT WITH YOUR LISTING