<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="3639">
 <title>Dirichlet's function</title>
 <name>DirichletsFunction</name>
 <created>2002-12-01 21:23:44</created>
 <modified>2008-03-25 06:36:17</modified>
 <type>Definition</type>
 <creator id="2727" name="mathcam"/>
 <author id="2727" name="mathcam"/>
 <author id="1100" name="urz"/>
 <classification>
	<category scheme="msc" code="26A15"/>
 </classification>
 <related>
	<object name="FunctionContinuousAtOnlyOnePoint"/>
	<object name="APathologicalFunctionOfRiemann"/>
 </related>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\emph{Dirichlet's function} $f:\mathbb{R}\to\mathbb{R}$ is defined as
\begin{displaymath}
  f\left(x\right) =
  \left\{ 
  \begin{array}{ll} 
    \frac{1}{q}  &amp;  \textrm{if } x=\frac{p}{q}
                        \textrm{ is a rational number in lowest terms,} \\
    0              &amp;  \textrm{if } x \textrm{ is an irrational number.} 
  \end{array}
  \right.
\end{displaymath}
This function has the property that it is continuous at every
irrational number and discontinuous at every rational one.

Another function that often goes by the same name is the function
\begin{displaymath}
  f\left(x\right) =
  \left\{ 
  \begin{array}{ll} 
    1  &amp;  \textrm{if } x \textrm{ is an rational number.}\\
    0              &amp;  \textrm{if } x \textrm{ is an irrational number.} 
  \end{array}
  \right.
\end{displaymath}
This nowhere-continuous function has the surprising \PMlinkescapetext{analytic} expression
\begin{align*}
f(x) = \lim_{m \to \infty} \lim_{n \to \infty} \cos^{2 n} (m! \pi x).
\end{align*}

This is often given as the (amazing!) example of a sequence of everywhere-continuous functions whose limit function is nowhere continuous.</content>
</record>
