Lists - HP -28S Manual

Advanced scientific calculator
Hide thumbs Also See for HP-28S:
Table of Contents

Advertisement

Lists
Lists are sequences of objects; they are the most general method of
combining several objects into one. Part 1 showed the following uses
for lists.
• In chapter 4, "Repeating a Calculation," the command PATH re-
turned a list of directory names, from the HOME directory to the
current directory.
• In chapter 7, "Plotting," the list variable PPAR contained param-
eters used by DRAW.
• In chapter 8, "The Solver," you gave a list containing three digitized
points as an estimate.
• In chapter 10, "Calculus," you specified the variable of integration
and the lower and upper limits of integration by combining them in
a list.
• In chapter 12, "Statistics," the list variable l:PAR contained param-
eters for paired-sample statistics.
In Algebraic Syntax. If a list is stored in a variable, you can refer to
elements in the list by using the variable name as a function. For ex-
ample, you could represent the sum of the third and fifth elements of
a list L as
'L (
:3 ) +L (
5::0 ' .
Lists and the Stack. The program MEDIAN, on page 273, shows
how to put the elements of a list on the stack and combine objects on
the stack into a list.
Sorting a List. The program SORT, on page 270, shows how to sort
the elements in a list.
Extracting Elements From a List. The program LMED, on page
272, shows how to extract elements from a list.
158
16: Objects
I

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents