Источник TeX:
AB=\frac{\sqrt{b^2 +2ab\cos{\alpha}+a^2}}{\sin{\alpha}}