3  Discrete and continuous number

To count or to measure.

The title of this chapter should be natural numbers \(\mathbb{N}\) and real numbers \(\mathbb{R}\). Everyone is familiar with these sets. Because the set of natural numbers is a subset of real numbers (e.g. 3 is also a real number), one can basically use real number and ignore the set of natural numbers.

So why such a title and why the distinction? The answer to the first question is because this book is about applied mathematics so there is more an emphasis about the properties of the numbers than nomenclature. In other words, natural numbers has the properties of discrete, while real numbers is a continuous set. The difference between discrete and continuous will appear in the statistics parts (discrete and continuous variables Chapter 17) and also implemented differently in coding (Chapter 30)1.

Formal

The formal definition is too technical2 and will be omitted. Intuitively, in a discrete set, every number is isolated. In contrast, in a continuous set, any number has a neighbor no matter how small is the distance. That is why continuous numbers (real numbers) are represented by a continuous line, whereas natural numbers are represented by equidistant points.

Examples

  • Example of discrete numbers:
    • Even numbers: 2, 4, 6, 8,…
    • Odd numbers: 3, 5, 7, 9 …
    • Prime numbers: 3, 5, 7, 11
    • And also the opposite (negative)
  • Examples of continuous numbers that :
    • Fractions: \(\frac{1}{3} = 0.3333\ldots, \frac{2}{4} = 0.5\)
    • Irrational numbers3
      • \(\pi = 3.14\ldots\)
      • \(e = 2.71\ldots\)
      • \(\sqrt{2} = 1.41 \ldots\)

Tips and warnings

  • Discrete number is mostly used for counting and indexing (e.g. in summation and product Chapter 4, for extracting element in a vector Chapter 35)

  • Two ways of modeling evolution in time: in a difference equation (Chapter 13) time is moves in discrete time step, and and in differential equation (Chapter 14) time is continuous.

  • In probabilites4, a sum (\(\sum\))is used to compute the mean (and all other moments) if the variable is discrete, and integral (\(\int\)) is used if the variable is continuous

  • Discrete numbers are mostly used for counting and indexing (e.g., in summation and product Chapter 4, or for extracting elements in a vector Chapter 35).

  • Two ways of modeling evolution over time: in a difference equation (Chapter 13), time moves in discrete time steps; in a differential equation (Chapter 14), time is continuous.

  • In probability5, a sum (\(\sum\)) is used to compute the mean (and all other moments) if the variable is discrete, whereas an integral (\(\int\)) is used if the variable is continuous.

Semantic/Terminology/Notation

  • The discrete numbers are also called whole number, natural number or integer. The latter is the default term in coding.

  • Discrete has nothing to do with “être discret”.


  1. although interchangeble use is not fatal in R ↩︎

  2. requiring the field of topology↩︎

  3. when the patterns in the digits never repeats↩︎

  4. anticipating future chapters↩︎

  5. Anticipating future chapters.↩︎