Dirichlet Function

DOWNLOAD Mathematica Notebook

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
(1)

and is discontinuous everywhere. The Dirichlet function can be written analytically as

 D(x)=lim_(m->infty)lim_(n->infty)cos^(2n)(m!pix).
(2)
DirichletFunction

Because the Dirichlet function cannot be plotted without producing a solid blend of lines, a modified version, sometimes itself known as the Dirichlet function (Bruckner et al. 2008), Thomae function (Beanland et al. 2009), or small Riemann function (Ballone 2010, p. 11), can be defined as

 D_M(x)={0   for x irrational; 1/b   for x=a/b a reduced fraction
(3)

(Dixon 1991), illustrated above. This function is continuous at irrational x and discontinuous at rational x (although a small interval around an irrational point x contains infinitely many rational points, these rationals will have very large denominators). When viewed from a corner along the line y=x in normal perspective, a quadrant of Euclid's orchard turns into the modified Dirichlet function (Gosper).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.