HP Forums
(12C) Maximum and Minimum - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (12C) Maximum and Minimum (/thread-8494.html)



(12C) Maximum and Minimum - Eddie W. Shore - 06-12-2017 02:43 AM

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.
Code:

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.
Code:

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