HP 33s User Manual

Page 265

Advertising
background image

Statistics

Programs

16–5

Program Lines:

(In RPN mode)

Description

 ! 

Stores b in B.

 #$ 

Displays value.

  P

Calculates coefficient m.

  ! 

Stores m in M.

  #$ 

Displays value.

Checksum and length: 9CC9 36

&   &

Defines the beginning of the estimation (projection) loop.

&  "! %

Displays, prompts for, and, if changed, stores x–value in X.

&  %1

1L2

2

Calls subroutine to compute

yˆ

.

&  ! &

Stores

yˆ

–value in Y.

&  "! &

Displays, prompts for, and, if changed, stores y–value in Y.

& 

& !- L

Adjusts index value to address the appropriate subroutine.

& %1

1L2

2

Calls subroutine to compute

xˆ

.

& ! %

Stores

xˆ

in X for next loop.

&  ! &

Loops for another estimate.

Checksum and length: 9B34 42

   

This subroutine calculates

yˆ

for the straight–line model.

   

  º %

  - 

Calculates

yˆ

= MX + B.

  !

Returns to the calling routine.

Checksum and length: F321 15

   

This subroutine calculates

xˆ

for the straight–line model.

  !. L

Restores index value to its original value.

   &

  . 

  ª 

Calculates

xˆ

=(YB)

÷ M.

 !

Returns to the calling routine.

Checksum and length: 65AB 18

   

This subroutine calculates

yˆ

for the logarithmic model.

Advertising