Source TeX:
\cos(\theta) = \dfrac{\text{adj}}{\text{hyp}} = \dfrac{a}{1}=a