TeX source:
h(x) =\left\{ \begin{array}{ll} 2 & \mbox { if x is a rational number }\\1 & \mbox { if x is an irrational number} \end{array} \right.