Skip to content

Instantly share code, notes, and snippets.

@camertron
Created February 25, 2013 04:19
Show Gist options
  • Save camertron/5027719 to your computer and use it in GitHub Desktop.
Save camertron/5027719 to your computer and use it in GitHub Desktop.
Slope of Mountain
/
/ |
/ |
116,435 / |
/ | 8,000
/ x |
___________
116,160
soh cah toa
cosine = adjacent / hypotenuse
a^2 + b^2 = c^2
c = sqrt((8000 ^ 2) + (116,160 ^ 2)) = 116,435
x = cos(116,160 / 116,435) = 0.54 radians = 30.9 degrees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment