This is LaTeX code:

[latex]
\cos x \in \left\{0,\pm\frac{\sqrt{2}}{2},\pm\frac{\sqrt{3}}{2}\right\}
[/latex]