HP 50g manual SEQ function, MAP function

Models: 50g

1 184
Download 184 pages 36.34 Kb
Page 104
Image 104

The SEQ function

The SEQ function, available through the command catalog (‚N), takes as arguments an expression in terms of an index, the name of the index, and starting, ending, and increment values for the index, and returns a list consisting of the evaluation of the expression for all possible values of the index. The general form of the function is

SEQ(expression, index, start, end, increment)

For example:

The list produced corresponds to the values {12, 22, 32, 42}.

The MAP function

The MAP function, available through the command catalog (‚N), takes as arguments a list of numbers and a function f(X), and produces a list consisting of the application of that function to the list of numbers. For example, the following call to function MAP applies the function SIN(X) to the list {1,2,3}:

In ALG mode, the syntax is:

~~map~!Ü!ä1@í2@í3™

@íS~X`

In RPN mode, the syntax is:

!ä1@í2@í3`³S~X`~

~map`

In both cases, you can either type out the MAP command (as in the examples above) or select the command from the CAT menu.

Reference

For additional references, examples, and applications of lists see Chapter 8 in the calculator’s user’s guide.

Page 7-7

Page 104
Image 104
HP 50g manual SEQ function, MAP function