inverse cosine (-1/2), 0 < theta < 2pi