EasyManua.ls Logo

Atari XL

Atari XL
262 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...
Functions
67
The
answer
is
2,
because
2
cubed
(2*2*2)
is
8.
(Again
the
Atari
is
not
quite
accurate,
printing
1.9999999.)
This
program
calculates
fifth
roots.
10
N =
243
20 R =
LOG(N)/5
30
PRINT EXP(R}
The
program
will
display
(3'
(actually
2.99999993),
because
3 to
the
power
5 (3/\5
or
3*3*3*3*3)
is
243.
Base
ten
logarithms
are
catered
for
by
the
function
CLOG.
The
antilogs
can
be
calculated
by
using
the
formula:
Antilog
zz: 1olog
So, if:
TENLOG
=
CLOG
(A)
Then:
A = lOI\TENLOG
RANDOM
NUMBERS
The
Atari
XL
has
a
function
which
provides
random
numbers.
The
function
is
RND(X),
which
prints
a
number
between
0
and
1.
The
'seed'
value
-X-
can
be
any
number
or
letter,
but
does
directly
influence
the
value
of
the
random
number
that
results.
Try
PRINTing
RND(I)
a few
times.
You
will
get
a
different
number
each
time.

Related product manuals