EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 248

Radio Shack TRS-80 Model 4
418 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...
LOG
I LOG(number)
Function I
Computes the natural logarithm of number.
This is the inverse of the EXP function. The result
is
always
in
single
precision.
Examples
PRINT
LOG(3.14159)
prints the value 1.14473.
Z = 10 *
LOG(Ps/P1)
performs the indicated calculation and assigns the value to
Z.
Sample Program
This program demonstrates the use of LOG.
It
utilizes a formula taken
from space communications research.
540
INPUT
"DISTANCE
SIGNAL
MUST
TRAl,'EL
(MILES)";
D
550
INPUT
"SIGNAL
FREQUENCY
(GIGAHERTZ)"; F
580
L =
98.58
+
(20
* LOG(F» +
(20
*
LOG(D»
570
PRINT "SIGNAL
STRENGTH
LOSS
IN
FREE
SPACE
IS"
L "DECIBELS."
2-122

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals