Assume that x is the height the tallest mast on a sail boat. Create a table of mast heights (10, 20, 30, 40, ..., 100) and how far a boat must sail (longitude/degrees) before the top of the mast is no longer visible.
Display the angle in degrees, minutes, seconds.
Add to the table created in Project #1 how far the boat has sailed
in feet, miles, nautical miles, meters, and/or kilometers.
Remember distance traveled is on the surface of the earth
which is curved.
r | radius of the earth adjacent side of right triangle and angle θ |
x | height of mast |
r + x | hypotenuse of right triangle |
θ | angle (at the equator it is a measure of east/west longitude) |
Notes:import numpy as np hypotenuse = r+x = r/np.cos(θ) θ = np.arccos(r/(r+x))