\[\cos\frac{z}{2}=\pm\left(\frac{1+\cos z}{2}\right)^{1/2},\]