Let's say you have a pendulum hanging straight down and touching the ground at the lowest point. The pendulum has length $l$. If you pull the pendulum back so that the end is height $h$ above the ground, what degree does the pendulum make with the vertical in terms of $h$ and $l$?
(Question taken from a physics problem)

$AD=l,\hspace{15 pt} BD=h, \hspace{15 pt}\therefore AB=l-h $
In $\triangle ABC (\text{which is a right angle triangle}), AC=l$ and let $\angle CAB=\theta$
$\cos (\theta)=\large\frac{AB}{AC}=\frac{l-h}{l} \Rightarrow \theta= \cos^{-1}(\frac{l-h}{l})$