EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 112

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...
ABS - Absolute Value
ABS(numeric'expression)
The
absolute
value
function
gives
you
the
dL~ulule
value
uf
the
argument.
The
argument
is the value
obtained
when
the
numeric·
expression is evaluated.
The
normal
rules for
evaluating
numeric
expressions
(see
"N
UlUel
ic Expressions")
are
used
here.
If
the
argument
is positive. then the
absolute
value function gives you
the
argument
itself.
If
the
argument
is negative,
the
absolute
value
function
~iv~
yuu
the
negative of the
argument.
Thus,
for
an
argument,
X:
_If
X
.2:0,
ABS(X)
=X
_If
X
<0,
ABS(X)
=-X
(e.g.,
ABS(-3)
=-(-3)=3)
ATN - Arctangent
ATN
(numeric'expression)
The
arctangent
function gives you the
arctangent
of the argument.
The
argument
i~
the
value
obtained
when
the
numeric-expression
is
evaluated.
The
normal rules for
evaluating
numeric
expressions
are
used here.
Thus,
ATN(x) gives you the
angle
(in radians)
whose
tangent
is
x.
If
you
want
to
get
the
equivalent
angle
ill
degrees, you
need
to multiply
the
answer
you get by (1801
4*ATN(I)))
or
57.295779513079
which is ISO!?r.
The
value
given
for
the
arctangent
function
is
always
ill
the range -
17/
2<ATN(x)<'7T/2.
11-92
Examples:
>N
EW
>100
A=-27.36
>110
8=9_7
>120 PRINT ABSCA);ABSCB)
>130
PRINT
ABSC3.8);ABS(-4.5)
>140 PRINT ABSC-3*2)
>150 PRINT ABSCA*(B-3.2»
>160
END
>RUN
27.36
9.7
3.8
4.5
6
177.84
**
DONE
**
>NEW
>100
PRINT
ATNC.44)
>110 PRINT
ATN(1E127)
>120
PRINT
ATNC1E-129);ATNCO)
>130
PRINT
ATNC.3)*57.2957795
13079
>140
PRINT
ATN(.3)*C180/(4*AT
N(1»)
>150
END
>RUN
.4145068746
1.570796327
o 0
16.69924423
16.69924423
**
DONE
**
User's Reference Guide

Other manuals for Texas Instruments TI-99/4A

Related product manuals