HP 12C Minimum and Maximum
HP 12C: Minimum of a Set
Instructions:
1. Enter the
initial point in R1. Press [ f ] (CLEAR
PRGM).
2. For each
point: enter the data point, press [R/S].
3. When you are
finished, press RCL 1.
Program:
STEP
|
CODE
|
KEY
|
01
|
44, 0
|
STO 0
|
02
|
45, 1
|
RCL 1
|
03
|
34
|
x<>y
|
04
|
43, 34
|
x≤y
|
05
|
44, 1
|
STO 1
|
06
|
43, 33, 00
|
GTO 00
|
Example:
9 [ST0] 1, [ f
] (CLEAR PRGM)
3 [R/S], 6
[R/S], 5 [R/S], 7 [R/S], 2 [R/S], 4 [R/S]
[RCL] 1 returns
2
HP 12: Maximum
of a Set
Instructions:
1. Enter the
initial point in R2. Press [ f ] (CLEAR
PRGM).
2. For each
point: enter the data point, press [R/S].
3. When you are
finished, press RCL 2.
Program:
STEP
|
CODE
|
KEY
|
01
|
44, 0
|
STO 0
|
02
|
45, 2
|
RCL 2
|
03
|
43, 34
|
x≤y
|
04
|
34
|
x<>y
|
05
|
44, 2
|
STO 2
|
06
|
43, 33, 00
|
GTO 00
|
Example:
9 [ST0] 2, [ f
] (CLEAR PRGM)
3 [R/S], 6
[R/S], 5 [R/S], 7 [R/S], 2 [R/S], 4 [R/S]
[RCL] 2 returns
9
Nice pair of
programs to have. Yes, they can be
incorporated in more complex routines.
Eddie
This blog is
property of Edward Shore, 2017.