Sequences – HP 48g Graphing Calculator User Manual
Page 205
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
![background image](/manuals/631929/205/background.png)
■ CEM3 L I S T EL.EM GET I similar to GET, but it also increments
a position index. The new index is put on level 2. The original list
is put on level 3.
f
PRG 1
L I S T E L E M F’UT takes an object from level 1 and
replaces an existing object within a list. You must supply a position
index on level 2, and a list on level 3. The resulting list is on level
1
.
(PRG)
L . I S T E L E M F ' U T I similar to P U T , but it also increments
a position index. The new index is put on level 1. The new list is on
level
2
.
(PRGl LI
number of elements in the list.
replaces the list on level
1
with the
■ fPRG
) L. I S T E L E M
P
0 S replaces a list on level 2 and an
element from that list on level
1
with a position index for the
first occurrence of that element. If the element is not found, 0 is
returned.
m
fPRG 1
L I S T
OE'J"?.' puts each object from a list on level
1
onto
the stack, plus puts the number of objects in level 1.
returns a list of elements from the list on
(PRGl
L I S T
level 3 specified by the starting and ending positions in levels 2 and
1
.
■ (PRG
I
L I ST R E P L replaces elements of a list on level 3 with
elements from a list on level
1
starting at the element specified in
level
2
.
17
Sequences
Sequence commands automate the generation of a list from the
repeated execution of a function or program.
1. Enter the function or program (or its name).
2. Enter the index variable name.
3. Enter the initial value for the variable.
4. Enter the final value for the variable.
Lists and Sequences 17-7