beautypg.com

List functions – HP Prime Graphing Calculator User Manual

Page 463

background image

Lists

459

To send a list

You can send lists to another calculator or a PC just as you
can apps, programs, matrices, and notes. See “Sharing
data” on page 44 f
or instructions.

List functions

List functions are found on the Math menu. You can use
them in Home and in programs.

You can type in the name
of the function, or you
can copy the name of the
function from the List
category of the Math
menu.

Press

D

6 to select the

List category in the left column of the Math menu. (List is
the sixth category on the Math menu, which is why
pressing 6 will take you straight to the List category.) Tap
a function to select it, or use the direction keys to highlight
it and either tap

or press

E

.

List functions are enclosed in parentheses. They have
arguments that are separated by commas, as in
CONCAT(L1,L2). An argument can be either a list

variable name or the actual list; for example,
REVERSE(L1) or REVERSE({1,2,3}).

Common operators like +, –, ×, and ÷ can take lists as
arguments. If there are two arguments and both are lists,
then the lists must have the same length, since the
calculation pairs the elements. If there are two arguments
and one is a real number, then the calculation operates on
each element of the list.

Example:

5*{1,2,3} returns {5,10,15}.

Besides the common operators that can take numbers,
matrices, or lists as arguments, there are commands that
can only operate on lists.