Sharp MZ-700 Basic Manual page 97

Disk basic interpreter
Hide thumbs Also See for MZ-700:
Table of Contents

Advertisement

LN
RND
100 A
=
LN (X)
99
Regarding the value of '9ariable X, gets natural logarithm
IO!!e
X and substitutes for variable A. X must be a positive
value.
110 A
=
LOG (X)/L
In order to obtain logy X when the logarithm base is Y, it
OG(Y)
can be obtained by statement number 110 or statement
120 A
=
LN (X)/LN
number 120.
(Y)
100 A=RND (1)
110 B=RND (10)
When there is a positive integral number in parentheses,
such as in statement number 100 or 110, generates a
random number using values from 0.00000001 to
0.99999999 sequentially each time the RND function is
used. (This has no relationship to the positive integral
number in parentheses.)
200 A=RND (0)
When there is a 0 or negative integral number in
210 B=RND (-3)
parentheses, such as in statement number 200 or 210,
initialization of random number generation occurs, a
specific number is always generated, and the same value is
substituted for A and for B.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents