
Thomae's function is a
real-valued
function of a real variable that can be defined as:
It is named after
Carl Johannes Thomae
Carl Johannes Thomae (sometimes called ''Johannes Thomae'', ''Karl Johannes Thomae'', or ''Johannes Karl Thomae''; 11 December 1840 in Laucha an der Unstrut – 1 April 1921 in Jena) was a German mathematician.
Biography
Thomae, son of Karl Aug ...
, but has many other names: the popcorn function, the raindrop function, the countable cloud function, the modified Dirichlet function, the ruler function, the Riemann function, or the Stars over Babylon (
John Horton Conway's name).
Thomae mentioned it as an example for an integrable function with infinitely many discontinuities in an early textbook on Riemann's notion of integration.
[ ]
Since every
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ration ...
has a unique representation with
coprime (also termed relatively prime)
and
, the function is
well-defined. Note that
is the only number in
that is coprime to
It is a modification of the
Dirichlet function, which is 1 at rational numbers and 0 elsewhere.
Properties
Related probability distributions
Empirical probability distributions related to Thomae's function appear in
DNA sequencing
DNA sequencing is the process of determining the nucleic acid sequence – the order of nucleotides in DNA. It includes any method or technology that is used to determine the order of the four bases: adenine, guanine, cytosine, and thymine. Th ...
.
The human genome is
diploid
Ploidy () is the number of complete sets of chromosomes in a cell, and hence the number of possible alleles for autosomal and pseudoautosomal genes. Sets of chromosomes refer to the number of maternal and paternal chromosome copies, respectively ...
, having two strands per chromosome. When sequenced, small pieces ("reads") are generated: for each spot on the genome, an integer number of reads overlap with it. Their ratio is a rational number, and typically distributed similarly to Thomae's function.
If pairs of positive integers
are sampled from a distribution
and used to generate ratios
, this gives rise to a distribution
on the rational numbers. If the integers are independent the distribution can be viewed as a
convolution
In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions ( and ) that produces a third function (f*g) that expresses how the shape of one is ...
over the rational numbers,
. Closed form solutions exist for
power-law
In statistics, a power law is a functional relationship between two quantities, where a relative change in one quantity results in a proportional relative change in the other quantity, independent of the initial size of those quantities: one qua ...
distributions with a cut-off. If
(where
is the
polylogarithm
In mathematics, the polylogarithm (also known as Jonquière's function, for Alfred Jonquière) is a special function of order and argument . Only for special values of does the polylogarithm reduce to an elementary function such as the natur ...
function) then
. In the case of uniform distributions on the set
, which is very similar to Thomae's function.
The ruler function
For integers, the exponent of the highest power of 2 dividing
gives 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, ... . If 1 is added, or if the 0s are removed, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 3, 1, 2, 1, ... . The values resemble tick-marks on a 1/16th
graduated ruler, hence the name. These values correspond to the restriction of the Thomae function to the
dyadic rational
In mathematics, a dyadic rational or binary rational is a number that can be expressed as a fraction whose denominator is a power of two. For example, 1/2, 3/2, and 3/8 are dyadic rationals, but 1/3 is not. These numbers are important in compute ...
s: those rational numbers whose denominators are powers of 2.
Related functions
A natural follow-up question one might ask is if there is a function which is continuous on the rational numbers and discontinuous on the irrational numbers. This turns out to be impossible. The set of discontinuities of any function must be an
set. If such a function existed, then the irrationals would be an set. The irrationals would then be the
countable union
Union commonly refers to:
* Trade union, an organization of workers
* Union (set theory), in mathematics, a fundamental operation on sets
Union may also refer to:
Arts and entertainment
Music
* Union (band), an American rock group
** ''Un ...
of
closed set
In geometry, topology, and related branches of mathematics, a closed set is a set whose complement is an open set. In a topological space, a closed set can be defined as a set which contains all its limit points. In a complete metric space, a cl ...
s
, but since the irrationals do not contain an interval, neither can any of the
. Therefore, each of the
would be nowhere dense, and the irrationals would be a
meager set
In the mathematical field of general topology, a meagre set (also called a meager set or a set of first category) is a subset of a topological space that is small or negligible in a precise sense detailed below. A set that is not meagre is called ...
. It would follow that the real numbers, being the union of the irrationals and the rationals (which, as a countable set, is evidently meager), would also be a meager set. This would contradict the
Baire category theorem
The Baire category theorem (BCT) is an important result in general topology and functional analysis. The theorem has two forms, each of which gives sufficient conditions for a topological space to be a Baire space (a topological space such that the ...
: because the reals form a
complete metric space, they form a
Baire space, which cannot be meager in itself.
A variant of Thomae's function can be used to show that any subset of the real numbers can be the set of discontinuities of a function. If
is a countable union of closed sets
, define
Then a similar argument as for Thomae's function shows that
has ''A'' as its set of discontinuities.
See also
*
Blumberg theorem
In mathematics, the Blumberg theorem states that for any real function f : \R \to \R there is a Dense set, dense subset D of \mathbb such that the Restriction_(mathematics), restriction of f to D is continuous function, continuous.
For instance, t ...
*
Cantor function
*
Dirichlet function
*
Euclid's orchard – Thomae's function can be interpreted as a perspective drawing of Euclid's orchard
*
Volterra's function
References
*
* (Example 5.1.6 (h))
External links
*
* {{MathWorld , title=Dirichlet Function , urlname=DirichletFunction
Calculus
General topology
Special functions