solve cos(\alpha + \theta) = 0 for \theta