Source TeX:
sin(\theta)=\frac{b}{\sqrt{a^2+b^2}}