/mg/ - mathematics general

Thomae's function edition
[eqn]
f(x) =
\begin{cases}
\frac{1}{q} & \text{if } x = \frac{p}{q}, \text{where } p,q \in \mathbb{Z} \text{ are co-prime} \\
0 & \text{if }x \text{ is irrational}
\end{cases}
[/eqn]
previous thread>>16432396