beautypg.com

List functions, List functions -4 – HP 38g Graphing Calculator User Manual

Page 148

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

List Functions

Function
Syntax

Following is a table of list functions. Use them in Home, as

well as 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 |

math

| |

A...Z

| L. This displays the List category.

Highlight the function on the right-hand side and press {{OK}}.

« Functions have

arguments

that are enclosed in

parentheses and separated by commas. Example;

CONCAT { L I , L 2 ) . An argument can be either a list

variable name (such as LI) or the actual list data inside

braces. For example,

REVERSE ( { 1 , 2 , 3 } ) .

e If Decimal Mark in MODES is set to Comma, use periods to

separate arguments. For example, CONCAT (

L I . L 2 ) .

List Functions

any real-

Operators like -i-,

and V can take lists as arguments.

number

if there are two arguments and both are lists, then the lists

operator

must have the same length, since the calculation pairs up the

elements. If there are two arguments and one is a real

number, then the calculation pairs the number with each

element of the list.

listl

-t

Ust2

value

-t-

list

list + value

Example: V

{ 4

, 9 , 1 6 } returns ( 2 , 3 ,

4

} .

CONCAT

Concatenates two lists into a new list.

CONCAT {listl ,Ust2)

Example: CONCAT ( { 1 , 2 , 3 } ,

{ 4 } )

returns { 1 , 2 , 3 ,

4

} .

7-4 Using Lists