Let c and d!=c be real numbers (usually taken as c = 1 and d = 0). The Dirichlet function is defined by D(x) = {c | for x rational d | for x irrational auto right match and is discontinuous everywhere. The Dirichlet function can be written analytically as D(x) = lim_(m->∞) lim_(n->∞) cos^(2n)(m!π x).