EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 117

Texas Instruments TI-99/4A
204 pages
Print Icon
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...
SGN - Signum (Sign)
SG
N(numeric-expression)
The
signum function gIves you
the
algebraIc
sign
of
the
value
specified
by
the
argument.
The
argument
is
the
value
obtained
when
the numeric-expression is evaluated.
The
normal
rules for
the
evaluation
of
numeric
expressions
are
used here.
The
signum
function gives different values
depending
on the
value
of the
argument.
These
values
are
given here.
For
argument.
X:
.X<O,
SGN(X)
=-1
X
=0,
SGN(X)
=0
.X>O.
SGN(X)
=1
Examples:
>NEW
>100
A"'-23.7
>110
a-6
>120 PRINT SGN(A);SGN(O);SGN(
B)
>130 PRINT
SGN(-3*3);SGN(S*2)
>140
END
>RUN
-1
0
-1
1
**
DONE
**
SIN
-
Sine
SIN
(numeric-expression)
The
sine
function gives you the sine
of
the
argument.
x,
where
x is
an
angle
in
radians.
The
argument
is the
value
obtained
when
the
numeric-expression is
evaluated.
The
normal
rules
for
evaluating
numeric
expressions
are
used here.
If
the
angle
is
in
Llegrees, simply multiply
the
degrees
by
'IT/180 to get
the
equivalent
angle in radians- You
may
use
(4
*ATN(l))/180
or
0.01745329251944
for
'77/180.
Note
that
if you
enter
a value of x
wllnt
I x I
2.
1.5707963266375*
10""
the
message
"BAD
ARG
UMENT"
is displayed
and
the
program
stops
running.
User's Reference Guide
>NEW
>100
A~.523598775S982
>110 8"'30
>120
C=.01745329Z51994
>130
PRINT
SIN(A);SIN(S*C)
>140 PRINT
SIN(B*(4*ATN(1ll/1
80)
>150
END
>RlIN
.5
.5
.5
**
DONE
**
>PRINT
SIN(1.9E12)
*
BAD
ARGUMENT
11-97

Other manuals for Texas Instruments TI-99/4A

Related product manuals