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