Thomae's function
   HOME

TheInfoList



OR:

Thomae's function is a
real Real may refer to: Currencies * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Music Albums * ''Real'' (L'Arc-en-Ciel album) (2000) * ''Real'' (Bright album) (2010) ...
-valued
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
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 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 Au ...
, 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 branches ...
'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 rat ...
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 equivale ...
(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 func ...
. 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 In mathematics, the Dirichlet function is the indicator function 1Q or \mathbf_\Q of the set of rational numbers Q, i.e. if ''x'' is a rational number and if ''x'' is not a rational number (i.e. an irrational number). \mathbf 1_\Q(x) = \begin 1 & ...
, 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, 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 distributions with a cut-off. If f(k) =k^ e^/\mathrm_\alpha(e^) (where \mathrm_\alpha is the polylogarithm 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 rationals: 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 numbers ...
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 sets \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 calle ...
. 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: 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 bou ...
, 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 e ...
, 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 In mathematics, the Dirichlet function is the indicator function 1Q or \mathbf_\Q of the set of rational numbers Q, i.e. if ''x'' is a rational number and if ''x'' is not a rational number (i.e. an irrational number). \mathbf 1_\Q(x) = \begin 1 & ...
*
Euclid's orchard In mathematics, informally speaking, Euclid's orchard is an array of one-dimensional "trees" of unit height planted at the lattice points in one quadrant of a square lattice. More formally, Euclid's orchard is the set of line segments from to , ...
– Thomae's function can be interpreted as a perspective drawing of Euclid's orchard *
Volterra's function {{norefs, date=November 2021 In mathematics, Volterra's function, named for Vito Volterra, is a real-valued function ''V'' defined on the real line R with the following curious combination of properties: * ''V'' is differentiable everywhere * ...


References

* * (Example 5.1.6 (h))


External links

* * {{MathWorld , title=Dirichlet Function , urlname=DirichletFunction Calculus General topology Special functions