List manipulations, List manipulations -6 – HP 48g Graphing Calculator User Manual
Page 204
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
17
3. Execute STREAM. STREAM is designed to take the first two
elements, excute the operation, then take the result and the next
element and execute again. This process continues until all the
elements have been used as arguments.
Example; Multiply all of the elements in { 1 2 3 4 5 } together.
Step 1:
Enter the list and the function.
Q(TT) 1 gpg 2 (|
p
3 3 (SP^
4
5
f E N T E R } 0 ( « 3 ©
Î E N T E R )
Step 2:
Execute the function.
fP?^ L I S T P R O S
{12 3 4 5 }
1
: « * »
1= 120
List Manipulations
The following functions provide ways to manipulate the elements of a
list:
fMTHl i... :
sorts the elements of a list in ascending
order. The list must be on level 1.
( M T
h
I
L. I ST R E v L . I reverses the elements of a list. The list must
be on level
1
.
(±D adds items to the begining or end of a list, or concatenates two
lists. To add an item to begining of a list, enter the item, enter the
list, and then press [+}■ To add an item to the end of a list, enter
the list, enter the item, and then press
CD-
replaces the list on level
1
with
f P R G ~ )
Î N X T )
the list’s first element.
f P R G )
(NXTI T F
i
I L replaces the list on level 1 with
all but the first element of the list.
( P R G I
. : . '
. - i L E M G E T replaces the list on level 2 and
position index on level
1
with the element at that position within
the list.
17-6 Lists and Sequences