\[\tan\frac{z}{2}=\pm\left(\frac{1-\cos z}{1+\cos z}\right)^{1/2}=\frac{1-\cos z%
}{\sin z}=\frac{\sin z}{1+\cos z}.\]