∆
LIST({list})
This function produces a list which contains the differences between
successive values in the supplied list. The resulting list has a length one less
than the original.
Eg.
L1={1,4,7,10,13}
∆ LIST(L1)={3,3,3,3}
MAKELIST
This function produces a list of the length specified using a rule of your
choice. It is very useful, not only in programming but in statistical simulations
and modeling.
The syntax is: MAKELIST(expression,variable name,start,end,increment)
where expression
variable name
start
end
and
increment
Eg. 1 MAKELIST( X
produces { 1, 9, 25, 49, 81 } as X goes from 1 to 3 to 5 to ...
and also stores the result into L1.
Eg. 2 MAKELIST(RANDOM,X,1,10,1) produces a set of 10 random
numbers. The X in this case serves only as a counter.
Eg. 3 MAKELIST(3,X,1,10,2)
produces {3,3,3,3,3,3,3,3,3,3}.
is the mathematical rule used to
generate the numbers.
is the variable that is to be used
in the expression (any other
letters will be taken constants).
is the first value that variable name is
be given.
is the largest value that variable
name is to take.
is the amount that variable name
should be incremented by.
2
,X,1,10,2) L1
266