ArticleslgStudy

computer science

Computable number

Computable number is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computable number rather than just read about it. In short: In mathematics, computable numbers are the real numbers that can be computed to within any desired precision by a finite, terminating algorithm. They are also known as the recursive numbers, effective numbers, computable reals, or recursive reals.

Computable number — main illustration
Computable number — illustration

Key takeaways

  • Computable number belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computable number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computable number from memory before moving on to harder problems.

Reference excerpt

In mathematics, computable numbers are the real numbers that can be computed to within any desired precision by a finite, terminating algorithm. They are also known as the recursive numbers, effective numbers, computable reals, or recursive reals. The concept of a computable real number was introduced by Émile Borel in 1912, using the intuitive notion of computability available at the time. Equivalent definitions can be given using μ-recursive functions, Turing machines, or λ-calculus as the formal representation of algorithms. The set of computable numbers is sometimes denoted by 𝕂. The idea of computable numbers can be further extended to computable complex numbers (or gaussian computable numbers) - whose both real and imaginary components are computable. The computable numbers form a real closed field and can be used in the place of real numbers for many, but not all, mathematical purposes.

Informal definition In the following, Marvin Minsky defines the numbers to be computed in a manner similar to those defined by Alan Turing in 1936; i.e., as "sequences of digits interpreted as decimal fractions" between 0 and 1:

A computable number [is] one for which there is a Turing machine which, given n on its initial tape, terminates with the nth digit of that number [encoded on its tape]. The key notions in the definition are (1) that some n is specified at the start, (2) for any n the computation only takes a finite number of steps, after which the machine produces the desired output and terminates. An alternate form of (2) – the machine successively prints all n of the digits on its tape, halting after printing the nth – emphasizes Minsky's observation: (3) That by use of a Turing machine, a finite definition – in the form of the machine's state table – is being used to define what is a potentially infinite string of decimal digits. This is, however, not the modern definition, which only requires a numerical value be attained to within any given accuracy. The informal definition above is subject to a rounding problem called the table-maker's dilemma whereas the modern definition is not.

Formal definition A real number a is computable if it can be approximated by some computable function f:ℕ→ℤ in the following manner: given any positive integer n, the function produces an integer f(n) such that:

f(n)−1n≤a≤f(n)+1n. A complex number is called computable if its real and imaginary parts are computable.

Equivalent definitions There are two similar definitions that are equivalent:

There exists a computable function which, given any positive rational error bound ε, produces a rational number r such that |r−a|≤ε. There is a computable sequence of rational numbers qi converging to a such that |qi−qi+1|<2−i for each i. There is another equivalent definition of computable numbers via computable Dedekind cuts. A computable Dedekind cut is a computable function D which when provided with a rational number r as input returns D(r)=true or D(r)=false, satisfying the following conditions:

∃rD(r)=true ∃rD(r)=false (D(r)=true)∧(D(s)=false)⇒r<s D(r)=true⇒∃s>r,D(s)=true. An example is given by a program D that defines the cube root of 3. Assuming q>0 this is defined by:

p3<3q3⇒D(p/q)=true p3>3q3⇒D(p/q)=false. A real number is computable if and only if there is a computable Dedekind cut D corresponding to it. The function D is unique for each computable number (although of course two different programs may provide the same function).

Properties

Not computably enumerable Assigning a Gödel number to each Turing machine definition produces a subset S of the natural numbers corresponding to the computable numbers and identifies a surjection from S to the computable numbers. There are only countably many Turing machines, showing that the computable numbers are subcountable. The set S of these Gödel numbers, however, is not computably enumerable (and consequently, neither are subsets of S that are defined in terms of it). This is because there is no algorithm to determine which Gödel numbers correspond to Turing machines that produce computable reals. In order to produce a computable real, a Turing machine must compute a total function, but the corresponding decision problem is in Turing degree 0′′. Consequently, there is no surjective computable function from the natural numbers to the set S of machines representing computable reals, and Cantor's diagonal argument cannot be used constructively to demonstrate uncountably many of them. While the set of real numbers is uncountable, the set of computable numbers is classically countable and thus almost all real numbers are not computable. Here, for any given computable number x, the well ordering principle provides that there is a minimal element in S which corresponds to x, and therefore there exists a subset consisting of the minimal elements, on which the map is a bijection. The inverse of this bijection is an injection into the natural numbers of the computable numbers, proving that they are countable. But, again, this subset is not computable, even though the computable reals are themselves ordered.

Properties as a field The arithmetical operations on computable numbers are themselves computable in the sense that whenever real numbers a and b are computable then the following real numbers are also computable: a + b, a - b, ab, and a/b if b is nonzero. These operations are actually uniformly computable; for example, there is a Turing machine which on input (A,B,ϵ) produces output r, where A is the description of a Turing machine approximating a, B is the description of a Turing machine approximating b, and r is an ϵ approximation of a + b. The fact that computable real numbers form a field was first proved by Henry Gordon Rice in 1954. Computable reals however do not form a computable field, because the definition of a computable field requires effective equality.

… excerpt ends here. Continue reading the full article.

Illustrations

Computable number: π can be computed to arbitrary precision, while almost every real number is not computable.
π can be computed to arbitrary precision, while almost every real number is not computable.

Worked examples

Example 1 — a first encounter with Computable number

Start with the simplest possible case. Write down what Computable number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computable number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computable number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computable number

In research
Computable number appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computable number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computable number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computability theory, Theory of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Computable number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computable number” →

How to study Computable number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computable number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computable number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computable number in simple terms?

In mathematics, computable numbers are the real numbers that can be computed to within any desired precision by a finite, terminating algorithm. They are also known as the recursive numbers, effective numbers, computable reals, or recursive reals.

Why does Computable number matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computable number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computable number.

Tags

  • Computability theory
  • Theory of computation

Keep exploring