\[\operatorname{arccos}x=\pi\mp i\ln\left((x^{2}-1)^{1/2}-x\right),\]