Dirichlet function

The Dirichlet function is a somewhat pathological function that is used as a counter example for a bunch of things in analysis. Its defined as