I am working on slides and when I enter the following code,
Code: Select all
\begin{displaymath}
f(x)=
\begin{cases}
n & \text{if } x \in \mathbb{Q} \ \text{and } x=m/n \ \text{where } n>0 \ \text{and } gcd(m,n)=1 \\
0 & \text{otherwise}
\end{cases}
\end{displaymath}
How would I do something like that?
Thanks!