01192019, 06:01 AM
HP10C 11C and 15C came with [L.R.] (Linear Regression) function.
HP12C don't have this function this program will do the L.R. function based
on the formula shown on the HP11C manual on page 63
To use this L.R. function program, use the [Σ+] key to accumulate the statistic of
a series of two or more data pair. Then execute [R/S]
Procedure:
[R/S] display Yintercept on stack register X
[X<>Y] display Slope on stack register Y

Program: L.R. for HP12C
Remark:
For HP12C Platinum
Simply remove [ENTER] [x] to [X^2]
And remove [STO] 0 [RCL] 0 and [X<>Y]
Gamo
HP12C don't have this function this program will do the L.R. function based
on the formula shown on the HP11C manual on page 63
To use this L.R. function program, use the [Σ+] key to accumulate the statistic of
a series of two or more data pair. Then execute [R/S]
Procedure:
[R/S] display Yintercept on stack register X
[X<>Y] display Slope on stack register Y

Program: L.R. for HP12C
Quote:RCL 1
RCL 6
x
RCL 2
RCL 4
x

RCL 1
RCL 3
x
RCL 2
ENTER
x

÷
STO 0

RCL 4
RCL 3
x
RCL 2
RCL 6
x

RCL 1
RCL 3
x
RCL 2
ENTER
x

÷
RCL 0
X<>Y
Remark:
For HP12C Platinum
Simply remove [ENTER] [x] to [X^2]
And remove [STO] 0 [RCL] 0 and [X<>Y]
Gamo