Chapter 7

Operations with lists

Lists are a type of calculator’s object that can be useful for data processing. This chapter presents examples of operations with lists. To get started with the examples in this Chapter, we use the Approximate mode (See Chapter 1).

Creating and storing lists

To create a list in ALG mode, first enter the braces key

, then type or

enter the elements of the list, separating them with commas (

). The

following keystrokes will enter the list {1 2 3 4} and store it into variable L1.

‚í4.

Entering the same list in RPN mode requires the following keystrokes:

Operations with lists³~l1`Kof numbers #4.`

To demonstrate operations with lists of numbers enter and store the following lists in the corresponding variables

L2 = {-3.,2.,1.,5.} L3 = {-6.,5 ,3 ,1.,0.,3.,-4.} L4 = {3.,-2.,1 ,5.,3 ,2 ,1.}

Changing sign

 

 

The sign-change key ( ) , when applied to a list of numbers,„äwill change

the „ä1sign of all elements‚íin the2.‚ílist For example:3.‚í

 

 

™K~l1`

 

Note: Directories TRIANG and MES1 resulted from a previous exercise.

Please„ä1ignore them.while\#trying2these.#examples3in.your calculator

Page 7-1

Page 104
Image 104
HP 49g manual Chapter Operations with lists, Creating and storing lists, Changing sign