TeX source:
\mathrm{h}(\mathrm{x})= \begin{cases}2 & \text { if } \mathrm{x} \text { is a rational number } \\ 1 & \text { if } \mathrm{x} \text { is an irrational number }\end{cases}