Page 8-10
Manipulating elements of a list
The PRG (programming) menu includes a LIST sub-menu with a number of
functions to manipulate elements of a list. With system flag 117 set to
CHOOSE boxes:
Item 1. ELEMENTS.. contains the following functions that can be used for the
manipulation of elements in lists:
List size
Function SIZE, from the PRG/LIST/ELEMENTS sub-menu, can be used to obtain
the size (also known as length) of the list, e.g.,
Extracting and inserting elements in a list
To extract elements of a list we use function GET, available in the PRG/LIST/
ELEMENTS sub-menu. The arguments of function GET are the list and the
number of the element you want to extract. To insert an element into a list use
function PUT (also available in the PRG/LST/ELEMENTS sub-menu). The
arguments of function PUT are the list, the position that one wants to replace,
and the value that will be replaced. Examples of applications of functions GET
and PUT are shown in the following screen:
Содержание 50G
Страница 1: ...HP g graphing calculator user s guide H Edition 1 HP part number F2229AA 90006 ...
Страница 130: ...Page 2 70 The CMDS CoMmanDS menu activated within the Equation Writer i e O L CMDS ...
Страница 177: ...Page 4 10 Function DROITE is found in the command catalog N Using EVAL ANS 1 simplifies the result to ...
Страница 206: ...Page 5 29 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Страница 257: ...Page 7 20 ...
Страница 383: ...Page 11 56 Function KER Function MKISOM ...
Страница 715: ...Page 21 68 Whereas using RPL there is no problem when loading this program in algebraic mode ...
Страница 858: ...Page L 5 ...