EasyManua.ls Logo

Sharp MZ-800 - 5.8 Functions

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.8
Functions
(1)
Numeric
functions
Numerical
functions
such
as
SIN
and
COS
perform
arithmetic
operations
on
given
numeric
expres-
sions
then
return
the
result.
The
MZ-800
is
provided
with
the
following
numerical
functions.
ABS(X)
Absolute
value
Returns
the
absolute
value
of
numeric
expression
X.
Example:
A=
ABS(X).
When
X=2.9,
A=2.9;
when
X=
—5.5,
A=S.5.
SGN(X)
Sign
Returns
1,
—1,
or
0
according
to
whether numeric
value
X
is
greater
than,
less
than,
or
equal
to
0,
respectively.
Example:
A=SGN(X).
When
X=0.4,
A=1;
when
X=
—1.2,
A=—1.
INT(X)
Integer
Returns
the
largest
integer
which
is
less
than
or
equal
to
X.
Example:
A=INT(X).
When
X
=3.87,
A=3;
when
X=0.6,
A=0;
when
X=
—3.87,
A=
-—4,
SQR(X)
Square
root
Returns
the
square
root
of
X.
The
value
specified
for
X
must
be
greater
than
or
equal
to
0.
Example:
A=SQR(X).
When
X=4,
A=2.
EXP(X)
Exponential
Returns
the
value
of
the
natural
base
e
to
the
power
of
X.
Example:
A=EXP(X)
Trigonometric
Functions
SIN(X)
Returns
the
sine
of
X,
where
X
is
an
angle
in
radians.
Use
the
following
expression
to
obtain
the
sine
of
an
angle
in
degrees.
SIN
(X
*
7/180)
Example:
A=
SIN(X)
COS(X)
Returns
the
cosine
of
X,
where
X
is
an
angle
in
radians.
Use
the
following
expression
to
obtain
the
cosine
of
an
angle
in
degrees.
COS
(X
*
#/180)
Example:
A
=COS
(X)
TAN(X)
Returns
the
tangent
of
X,
where
X
is
an
angle
in
radians.
Use
the
following
expression
to
obtain
the
tangent
of
an
angle
in
degrees.
TAN
(X
*
7/180)
Example:
A=
TAN(X)
ATN(X)
Returns
the
arc
tangent
of
X
in
radians.
The
value
returned
is
within
the
range
—2/2
to
x/2.
Use
the
following
expression
to
obtain
the
arc
tangent
of
X
in
degrees.
ATN
(X)*
180/x
Example:
A=
ATN(X)
5-10

Other manuals for Sharp MZ-800

Related product manuals