EasyManua.ls Logo

HP 48GII

HP 48GII
653 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RPL Programming Examples 2-11
Techniques used in %TILE
! FLOOR and CEIL. For an integer, FLOOR and CEIL both return that integer; for a noninteger, FLOOR and
CEIL return successive integers that bracket the noninteger.
! SORT. The SORT command sorts the list elements into ascending order.
%TILE program listing (Note: Use Approximate mode for this program and example)
Program: Comments:
"!
DYB2!DLK:!
!
452!D6J<!
3!'!KL:!388!,!.!
!
#!q!
!
"!
452!
q!7ELLK!><:!
!
DYB2!
q!O<6E!><:!
!
'!H!,!
!
1!
Brings the list to level 1 and sorts it.
Copies the list, then finds its size.
Calculates the position of the specified
percentile.
Stores the center position in local variable p.
Begins the defining procedure.
Makes a copy of the list.
Gets the number at or below the center
position.
Moves the list to level 1.
Gets the number at or above the center
position.
Calculates the average of the two numbers.
Ends the defining procedure.
»
`O%TILE K
Stores the program in %TILE.
Checksum: # 50559d
Bytes: 99
Example: Calculate the median of the list {8 3 1 5 2}.
8 3 1 5 2`
J50 %©TILE%
MEDIAN (Median of Statistics Data)
MEDIAN returns a vector containing the medians of the columns of the statistics data. Note that for a sorted list
with an odd number of elements, the median is the value of the center element; for a list with an even number of
elements, the median is the average value of the elements just above and below the center.
Level 1 " Level 1
"
[ x
1
x
2
x
m
]

Table of Contents

Other manuals for HP 48GII

Related product manuals