ctg\frac{x}{2}=\pm\sqrt{\frac{1+\cos x}{1-\cos x}}