Solve for θ 0 degrees <=theta<360 degrees