solve |cos x|\leq 1/2