Dirichlet function


In mathematics, the Dirichlet function is the indicator function 1 of the set of rational numbers ℚ, i.e. 1 = 1 if x is a rational number and 1 = 0 if x is not a rational number.
It is named after the mathematician Peter Gustav Lejeune Dirichlet. It is an example of pathological function which provides counterexamples to many situations.

Topological properties

For any real number x and any positive rational number T, 1 = 1. The Dirichlet function is therefore an example of a real periodic function which is not constant but whose set of periods, the set of rational numbers, is a dense subset of ℝ.

Integration properties