234 Appendix A: Functions and Instructions
seq() MATH/List menu
seq(
expression
,
var
,
low
,
high
[,
step
]) ⇒
list
Increments
var
from
low
through
high
by an
increment of
step
, evaluates
expression
, and
returns the results as a list. The original contents
of
var
are still there after seq() is completed.
var
cannot be a system variable.
The default value for
step =
1.
seq(n^2,n,1,6) ¸
{1 4 9 16 25 36}
seq(1/n,n,1,10,2)
¸
{1 1/3 1/5 1/7 1/9}
sum(seq(1àn^2,n,1,10,1))
¸
196...
127...
or press ¥ ¸ to get: 1.549...
setDate() CATALOG
setDate(
year,month,day
) ⇒
listold
Sets the clock to the date given in the argument
and returns a list. (Note: The
year
must fall in
the range 1997 - 2132.) The returned list is in
{
yearold,monthold,dayold
} format. The returned
date is the previous clock value.
Enter the year as a four-digit integer. The month
and day can be either one- or two-digit integers.
setDate(2001,10,31) ¸
{2001 11 1}
setDtFmt() CATALOG
setDtFmt(
integer
) ⇒
integerold
Sets the date format for the desktop according to
the argument and returns the previous date
format value.
Integer values:
1 = MM/DD/YY 5 = YY.MM.DD
2 = DD/MM/YY 6 = MM-DD-YY
3 = MM.DD.YY 7 = DD-MM-YY
4 = DD.MM.YY 8 = YY-MM-DD
setFold() CATALOG
setFold(
newfolderName
) ⇒
oldfolderString
Returns the name of the current folder as a string
and sets
newfolderName
as the current folder.
The folder
newfolderName
must exist.
newFold chris ¸ Done
setFold(main)
¸ "chris"
setFold(chris)! oldfoldr
¸
"main"
1! a
¸ 1
setFold(#oldfoldr)
¸ "chris"
a
¸ a
chris\a
¸ 1
setGraph() CATALOG
setGraph(
modeNameString
,
settingString
) ⇒
string
Sets the Graph mode
modeNameString
to
settingString
, and returns the previous setting of
the mode. Storing the previous setting lets you
restore it later.
modeNameString
is a character string that specifies
which mode you want to set. It must be one of
the mode names from the table below.
settingString
is a character string that specifies the
new setting for the mode. It must be one of the
settings listed below for the specific mode you
are setting.
setGraph("Graph Order","Seq")
¸ "SEQ"
setGraph("Coordinates","Off")
¸ "RECT"
Note: Capitalization and blank spaces are
optional when entering mode names.