HOME

TheInfoList



OR:

Thomae's function is a real-valued function of a real variable that can be defined as: f(x) = \begin \frac &\textx = \tfrac\quad (x \text p \in \mathbb Z \text q \in \mathbb N \text\\ 0 &\textx \text \end It is named after Carl Johannes Thomae, 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 John Horton Conway (26 December 1937 – 11 April 2020) was an English mathematician active in the theory of finite groups, knot theory, number theory, combinatorial game theory and coding theory. He also made contributions to many branc ...
'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 ra ...
has a unique representation with
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equival ...
(also termed relatively prime) p \in \mathbb Z and q \in \mathbb N, the function is
well-defined In mathematics, a well-defined expression or unambiguous expression is an expression whose definition assigns it a unique interpretation or value. Otherwise, the expression is said to be ''not well defined'', ill defined or ''ambiguous''. A fun ...
. Note that q = +1 is the only number in \mathbb N that is coprime to p = 0. 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. 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, respecti ...
, 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 m, n are sampled from a distribution f(n,m) and used to generate ratios q=n/(n+m), this gives rise to a distribution g(q) 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 mathematical operation on two functions ( and ) that produces a third function (f*g) that expresses how the shape of one is modified by the other. The term ''convolution' ...
over the rational numbers, g(a/(a+b)) = \sum_^\infty f(ta)f(tb). 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 ...
distributions with a cut-off. If f(k) =k^ e^/\mathrm_\alpha(e^) (where \mathrm_\alpha 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 natu ...
function) then g(a/(a+b)) = (ab)^ \mathrm_(e^)/\mathrm^2_(e^). In the case of uniform distributions on the set \ g(a/(a+b)) = (1/L^2) \lfloor L/\max(a,b) \rfloor, which is very similar to Thomae's function.


The ruler function

For integers, the exponent of the highest power of 2 dividing n 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 compu ...
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 In mathematics, a set is countable if either it is finite or it can be made in one to one correspondence with the set of natural numbers. Equivalently, a set is ''countable'' if there exists an injective function from it into the natural number ...
union 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 spac ...
s \bigcup_^\infty C_i, but since the irrationals do not contain an interval, neither can any of the C_i. Therefore, each of the C_i 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 In mathematical analysis, a metric space is called complete (or a Cauchy space) if every Cauchy sequence of points in has a limit that is also in . Intuitively, a space is complete if there are no "points missing" from it (inside or at the bo ...
, they form a
Baire space In mathematics, a topological space X is said to be a Baire space if countable unions of closed sets with empty interior also have empty interior. According to the Baire category theorem, compact Hausdorff spaces and complete metric spaces are ...
, 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 A = \bigcup_^ F_n is a countable union of closed sets F_n, define f_A(x) = \begin \frac & \text x \text n \text x \in F_n\\ -\frac & \text x \text n \text x \in F_n\\ 0 & \text x \notin A \end Then a similar argument as for Thomae's function shows that f_A has ''A'' as its set of discontinuities.


See also

* Blumberg theorem *
Cantor function In mathematics, the Cantor function is an example of a function that is continuous, but not absolutely continuous. It is a notorious counterexample in analysis, because it challenges naive intuitions about continuity, derivative, and measure ...
* 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