HP (Hewlett-Packard) HP 50g Calculator User Manual


 
Page 7-7
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 {1
2
, 2
2
, 3
2
, 4
2
}.
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.
SG49A.book Page 7 Friday, September 16, 2005 1:31 PM