This is LaTeX code:
[latex]
P=r^2(ctg(\frac{\alpha}{2})+ctg(\frac{\beta}{2})+ctg(\frac{\gamma}{2}))
[/latex]