Program:

Comments:

 

 

m →ARRY

Combines all the medians into an melement vector.

s STOΣ

Restores ΣDAT to its previous value.

»

Ends the defining procedure.

»

 

 

 

`OMEDIAN K

Stores the program in MEDIAN.

 

 

 

Checksum: # 256d

Bytes: 140

Example: Calculate the median of the following data.

1812

4 7

3 2

111

3148

2017

There are two columns of data, so MEDIAN will return a twoelement vector.

Enter the matrix.

‚Ù%OK% %EDIT%

18`12 `˜šš

4 `7 `

3 `2 `

11`1 `

31`48 `

20`17 `

`%OK%

The matrix is now stored in ΣDAT.

Calculate the median.

J%MEDIA%

Clear approximate mode (set exact mode) before going on to the next example.

Expanding and Collecting Completely

This section contains two programs:

MULTI repeats a program until the program has no effect on its argument.

EXCO calls MULTI to completely expand and collect an algebraic.

RPL Programming Examples 213

Page 93
Image 93
HP 48gII Graphing, 50g Graphing manual Expanding and Collecting Completely, `Omedian K, 18 `12 `˜šš, 11 `1 `, ` %Ok%