50
Each
of
the system functions except STR
has
a single argument (optional
with
RND),
which
can
be
a valid arithmetic expression (explained later in this chapter)
and
pro-
duces
a single result. An invalid argument produces
an
error. The argument
for
the
DET function must
be a reference
to
a square arithmetic array. Minimum precision
for
these
system functions
is
10 digits. The system functions included in the 5100
are
listed in Figure
8.
Function
Name
ABS(x)
ACS(x)
ASN(x)
ATN(x)
COS(x)
COT(x)
esC(x)
DEG(x)
DET(x)
EXP(x)
HCS(x)
HSN(x)
HTN(x)
INT(x)
LGT(x)
LOG(x)
LTW(x)
RAD(x)
RND[(x)]
SEC(x)
SGN(x)
SIN(x)
SQR(x)
STR(X$,y,z)
TAN(x)
Description
Absolute value
of
x
Arc cosine (in radians)
of
x
Arc
sine
(in radians)
of
x
Arc tangent (in radians)
of
x
Cosine
of
x radians
Cotangent
of
x radians
Cosecant
of
x radians
Number
of
degrees
in x
radians
Determinant
of
an
arithmetic array·
Natural exponent
of
x
Hyperbolic cosine
of
x
Hyperbolic
sine
of
x
Hyperbolic tangent
of
x
Integral part
of
x
Logarithm
of
x
to
the
base
10
Logarithm
of
x
to
the
base
e
Logarithm
of
x
to
the
base
2
Number
of
radians in x
degrees
Random number between 0
and
12
Secant
of
x radians
Sign
of
x
(-1,0,
or +1)
Sine
of
x radians
Square root
of
x
Substring
of
character variable
X$,
starting with the
yth
character
and
extending for Z characters
Tangent
of
x radians
• Maximum
matrix
size
is
50x50. Result
of
less
than 1
E-20
is
the
same
as
zero.
2Note
that
the random number
of
a constant
will
always produce the
same
result,
but
can
be
used
to
start a
different
set
of
numbers.
RND
without
an
argument
gives
you
a random
number
from
within
the
same
set
of
numbers
Figure 8. System Functions
I"