Radio Shack TRS-80 Model 100 Basic Manual page 119

Basic language lab
Hide thumbs Also See for TRS-80 Model 100:
Table of Contents

Advertisement

Execute this program and enter a height of 20 and a distance of 15. You should see:
HEIGHT. DISTANCE? 20, 15
GUY WIRE LENGTH IS 25
Ok
Rerun the program using a height and distance of your own choosing. You might
recall from geometry that this program calculates the hypotenuse of a right triangle
using the Pythagorean Theorem.
Experiment #3 Calculate the height of a tree
A problem similar to the guy wire length calculation is the determination of the height
of a structure, such as a tree. The problem is illustrated below:
\
'\
\
'\
'\
"
\
\
0= distance to base
illustration 3
A
=
angle in degrees
Using Trigonometry, the height may be found if the distance to the base and the angle
to the top are known. The formula is:
H
=
Dtan0
where the angle 0 (theta) is measured in radians.
113

Advertisement

Table of Contents
loading

Table of Contents