About

Column

Real Numbers

Back to main page

Real Numbers

Real Numbers

Any number that can be found in the real world is a real number. We find numbers everywhere around us. Natural numbers are used for counting objects, rational numbers are used for representing fractions, irrational numbers are used for calculating the square root of a number, integers for measuring temperature, and so on.

These different types of numbers make a collection of real numbers. In this lesson, we will learn all about real numbers and their important properties.

What are Real Numbers?

Any number that we can think of, except complex numbers, is a real number. The set of real numbers, which is denoted by R, is the union of the set of rational numbers (Q) and the set of irrational numbers (Q). So, we can write the set of real numbers as, R = Q ∪ Q. This indicates that real numbers include natural numbers, whole numbers, integers, rational numbers, and irrational numbers.

For example, 3, 0, 1.5, 3/2, √5, and so on are real numbers.

Types of Real Numbers

We know that real numbers include rational numbers and irrational numbers. Thus, there does not exist any real number that is neither rational nor irrational. It simply means that if we pick up any number from R, it is either rational or irrational.

Rational Numbers

Any number which can be defined in the form of a fraction p/q is called a rational number. The numerator in the fraction is represented as ‘p’ and the denominator as ‘q’, where ‘q’ is not equal to zero. A rational number can be a natural number, a whole number, a decimal, or an integer. For example, 1/2, -2/3, 0.5, 0.333 are rational numbers.

Irrational Numbers

Irrational numbers are the set of real numbers that cannot be expressed in the form of a fraction p/q where ‘p’ and ‘q’ are integers and the denominator ‘q’ is not equal to zero (q≠0.). For example, π (pi) is an irrational number. π = 3.14159265…In this case, the decimal value never ends at any point. Therefore, numbers like √2, -√7, and so on are irrational numbers.

Symbol of Real Numbers

Real numbers are represented by the symbol R. Here is a list of the symbols of the other types of numbers.

N - Natural numbers W - Whole numbers Z - Integers Q - Rational numbers ¯¯¯¯ Q - Irrational numbers

Subsets of Real Numbers

All numbers except complex numbers are real numbers. Therefore, real numbers have the following five subsets:

  • Natural numbers: All positive counting numbers make the set of natural numbers, \(N = {1, 2, 3, ...}\)
  • Whole numbers: The set of natural numbers along with 0 represents the set of whole numbers. W = {0, 1, 2, 3, ..}
  • Integers: All positive counting numbers, negative numbers, and zero make up the set of integers. Z = {…, -3, -2, -1, 0, 1, 2, 3, …}
  • Rational numbers: Numbers that can be written in the form of a fraction p/q, where ‘p’ and ‘q’ are integers and ‘q’ is not equal to zero are rational numbers. Q = {-3, 0, -6, 5/6, 3.23}
  • Irrational numbers: The numbers that are square roots of positive rational numbers, cube roots of rational numbers, etc., such as √2, come under the set of irrational numbers. ( ¯

Part 1. Number Bases

  • Numbers in Base 10
  • The binary system
  • Calculating in the binary system
  • The Hexadecimal system
  • Converting decimal integers into other bases

Part 2. Rational Numbers

  • Factor, multiples and primes
  • Representing fractions
  • Decimal fractions
  • Fractions in bases other than 10

Number Sets

Number Sets (Notation) The font that the symbols are written in (i.e. \(\mathbb{N}\), \(\mathbb{R}\)) is known as blackboard font.

  • \(\mathbb{N}\) Natural Numbers (\(0,1,2,3\)) (Not used in the CIS102 Syllabus)

  • \(\mathbb{Z}\) Integers (\(-3,-2,-1,0,1,2,3, \ldots\))

  • [\(\ast\)] \(\mathbb{Z}^{+}\) Positive Integers

  • [\(\ast\)] \(\mathbb{Z}^{-}\) Negative Integers

  • \(\mathbb{Q}\) Rational Numbers

  • \(\mathbb{R}\) Real Numbers

Sets of Numbers

  • \(\mathbb{Z}\) Set of all integers

  • \(\mathbb{Q}\) Set of all rational numbers

  • \(\mathbb{R}\) Set of all real numbers

  • \(\mathbb{Z}^{+}\) Set of all positive integers

  • \(\mathbb{Z}^{-}\) Set of all negative integers

  • \(\mathbb{R}^{+}\) Set of all positive real numbers

  • \(\mathbb{R}^{-}\) Set of all negative real numbers

Part 3. Real Numbers

Floating Point Numbers

  • mantissa - the part of a floating-point number which represents the significant digits of that number.

  • radix point - a radix point or radix character is a symbol used in the display of numbers to separate the integer part of the value from its fractional part. A decimal point is a well-known radix point.

Cartestian Coordinates

  • abscissa

Types of Numbers

Column

Natural, Rational and Real Numbers

  • \(\mathbb{N}\) : natural numbers (or positive integers) \(\{1,2,3,\ldots\}\)

  • \(\mathbb{Z}\) : integers \(\{-3,-2,-1,0,1,2,3,\ldots\}\) \begin{itemize}

  • (The letter \(\mathbb{Z}\) comes from the word which means ``numbers” in German.)

  • \(\mathbb{Q}\) : rational numbers

  • \(\mathbb{R}\) : real numbers

  • \(\mathbb{N} \subseteq \mathbb{Z } \subseteq \mathbb{Q} \subseteq \mathbb{R}\)

  • (All natural numbers are integers. All integers are rational numbers. All rational numbers are real numbers.)

Notations for Numbers

Column

Significant Digits

  • There are three rules on determining how many significant figures are in a number: Non-zero digits are always significant.
  • Any zeros between two significant digits are significant.
  • A final zero or trailing zeros in the decimal portion ONLY are significant.

Floating Point Notation

  • In computing, floating point describes a method of representing an approximation of a real number in a way that can support a wide range of values.

  • The numbers are, in general, represented approximately to a fixed number of significant digits (the mantissa) and scaled using an exponent.

  • In essence, computers are integer machines and are capable of representing real numbers only by using complex codes. The most popular code for representing real numbers is called the IEEE Floating-Point Standard . The term floating point is derived from the fact that there is no fixed number of digits before and after the decimal point; that is, the decimal point can float.

  • There are also representations in which the number of digits before and after the decimal point is set, called fixed-point representations.

  • In general, floating-point representations are slower and less accurate than fixed-point representations, but they can handle a larger range of numbers.

Rational and Irrational Numbers

Column

Real and Irrational Numbers

In mathematics, an irrational number is a real number that cannot be expressed as a ratio of integers, i.e. as a fraction. Therefore, irrational numbers, when written as decimal numbers, do not terminate, nor do they repeat.

Irrational Numbers

An irrational number cannot be expressed as a ratio between two numbers and it cannot be written as a simple fraction because there is not a finite number of numbers when written as a decimal. Instead, the numbers in the decimal would go on forever, without repeating.

Rational and Irrational Numbers

You can tell if it is Rational or Irrational by trying to write the number as a simple fraction.

  • 1.5 is rational, because it can be written as the ratio 3/2
  • 7 is rational, because it can be written as the ratio 7/1
  • 0.333… (3 repeating) is also rational, because it can be written as the ratio 1/3

Real and Irrational Numbers

Fractional Numbers

Fractional Numbers

If we want a definition, we can start by saying that fractional numbers are numbers that represent one or more parts of a unit that has been divided in equal parts.

The fractional numbers are figured out by two whole numbers (the fraction terms) that are separated by a horizontal line (the fraction line).

The number above the line (the numerator) can be every whole number and the number below the line (the denominator) should be different from zero. Here are some examples of some kinds of fractions:

  • Proper Fraction: the number is inferior to the denominator, for instance 3/4 ;
  • Improper fraction: the numerator is superior to the denominator, for instance 9/2 ;
  • Mixed Fraction or Mixed Numeral: it is composed of a whole part and a fractional one, for instance 2 1/3 ;
  • Equivalent Fractions: fractions that keep on the same proportion of another fraction, for instance: 5/2 = 10/4 ;
  • Irreducible Fraction: it cannot be simplified, for instance: 4/3 ;
  • Decimal Fraction: the denominator is a power whose base is 10 (10,100,1000,…), for instance 8/100 ;
Is every number written as a fraction a fractional number?

It may seem weird, but the answer is No. First of all because the definition tells us that fractional numbers are numbers that represent one or more parts of the whole. So, for instance, the number 10/2, which is written as a fraction is not a fractional number, since it figures out number 5 and this one is not part of a whole.

The number sqrt 2 / 3 is also written as a fraction, but it is not a fractional number since the numerator is not a whole number.

Fractional Numbers

Column

Fractional Numbers

A fractional number, commonly referred to as a fraction, represents a part of a whole or a ratio between two quantities. It consists of two components: a numerator and a denominator.

Components:

  • Numerator: The top part of the fraction, indicating how many parts of the whole are being considered.
  • Denominator: The bottom part of the fraction, indicating the total number of equal parts that make up the whole.

Examples:

  • \(\frac{1}{2}\): Represents one half of a whole.
  • \(\frac{3}{4}\): Represents three parts out of four equal parts of a whole.

Types of Fractions:

  • Proper Fractions: The numerator is less than the denominator (e.g., \(\frac{3}{7}\)).
  • Improper Fractions: The numerator is greater than or equal to the denominator (e.g., \(\frac{5}{3}\)).
  • Mixed Numbers: A combination of a whole number and a proper fraction (e.g., \(2 \frac{1}{2}\)).

Operations with Fractions:

  • Addition/Subtraction: Fractions are added or subtracted by finding a common denominator.
  • Multiplication: Fractions are multiplied by multiplying the numerators together and the denominators together.
  • Division: Dividing one fraction by another involves multiplying by the reciprocal of the second fraction.

Importance:

Fractions are essential in various fields, including mathematics, science, engineering, and everyday life, for representing and manipulating quantities that are not whole numbers.

Floating Point Notation

Floating Point Notation for Numbers

Floating Point Notation

Floating point notation is a method used to represent real numbers that can accommodate a wide range of values. This notation is particularly useful in scientific and engineering calculations where extremely large or small numbers are common. Unlike fixed-point notation, which has a fixed number of digits before and after the decimal point, floating point notation can “float” the decimal point, allowing for greater flexibility and precision.

Understanding Floating Point Representation

At its core, floating point notation expresses numbers in the form of:

\[ N = M \times B^E \]

where: - \(N\) is the number being represented. - \(M\) is the mantissa (or significand), representing the significant digits of the number. - \(B\) is the base (or radix), typically 2 for binary systems used in computers. - \(E\) is the exponent, indicating the power to which the base is raised.

For example, the decimal number 123.45 can be represented in floating point notation as:

\[ 1.2345 \times 10^2 \]

Here, 1.2345 is the mantissa, 10 is the base, and 2 is the exponent.

Components of Floating Point Numbers

  1. Mantissa (Significand):
    • The mantissa represents the significant digits of the number.
    • In binary floating point, it is a string of binary digits.
  2. Exponent:
    • The exponent scales the mantissa by the base raised to the power of the exponent.
    • The exponent can be positive or negative, allowing representation of very large or very small numbers.
  3. Base:
    • Commonly, the base is 2 in binary floating point systems used by computers.
    • Decimal floating point systems use base 10.
  4. Sign Bit:
    • Floating point numbers include a sign bit to indicate whether the number is positive or negative.

IEEE 754 Standard

The IEEE 754 standard is the most widely used standard for floating point computation. It defines the representation and behavior of floating point numbers in binary and decimal formats.

  • Single Precision (32-bit):
    • 1 bit for the sign.
    • 8 bits for the exponent.
    • 23 bits for the mantissa.
  • Double Precision (64-bit):
    • 1 bit for the sign.
    • 11 bits for the exponent.
    • 52 bits for the mantissa.

Example: Single Precision Representation

Consider the decimal number -42.75. To represent this in IEEE 754 single precision:

  1. Convert to Binary:
    • The integer part: 42 in binary is 101010.
    • The fractional part: 0.75 in binary is 0.11.
    • Combined: 101010.11.
  2. Normalize:
    • Move the binary point to after the first 1: \(1.0101011 \times 2^5\).
  3. Determine Sign Bit:
    • The number is negative, so the sign bit is 1.
  4. Exponent:
    • The exponent is 5, but IEEE 754 uses a bias of 127 for single precision.
    • \(5 + 127 = 132\).
    • 132 in binary is 10000100.
  5. Mantissa:
    • The mantissa is the normalized significant bits: 01010110000000000000000 (23 bits).

The IEEE 754 representation of -42.75 in single precision is:

\[ 1\ 10000100\ 01010110000000000000000 \]

Applications and Importance

Floating point notation is crucial in various fields:

  • Scientific Computing: Handling very large or very small numbers with high precision.
  • Engineering: Accurate simulations and calculations.
  • Graphics: Precise rendering of images and animations.
  • Finance: Managing calculations involving significant decimal places.

Challenges and Considerations

  • Precision Limits: Floating point numbers can only approximate real numbers, leading to rounding errors.
  • Representation Issues: Not all decimal numbers can be precisely represented in binary floating point.
  • Overflow and Underflow: Large exponents can cause overflow, while very small exponents can cause underflow.

Conclusion

Floating point notation provides a flexible and efficient way to represent real numbers in computing. By understanding its structure and limitations, one can effectively utilize this notation in various applications, ensuring accurate and reliable numerical computations. The IEEE 754 standard has standardized this representation, making it an essential tool in modern computing and digital systems.

Repeating Decimals

Column

Repeating Decimals

Scientific notation is a way of expressing very large or very small numbers in a compact and manageable form. It is widely used in science, engineering, and mathematics to make calculations easier and to clearly communicate precise values. Scientific notation represents numbers as a product of a coefficient and a power of 10.

Format:

A number in scientific notation is written as: \[ N = M \times 10^E \] where: - \(N\) is the number being represented. - \(M\) is the mantissa (or coefficient), a decimal number greater than or equal to 1 and less than 10. - \(10\) is the base. - \(E\) is the exponent, an integer that indicates how many times the base (10) should be multiplied or divided.

Examples:

  1. Large Numbers:
    • The number 5,200,000 can be written in scientific notation as: \[ 5.2 \times 10^6 \] Here, \(5.2\) is the mantissa, and \(6\) is the exponent indicating the decimal point has been moved 6 places to the left.
  2. Small Numbers:
    • The number 0.000042 can be written in scientific notation as: \[ 4.2 \times 10^{-5} \] Here, \(4.2\) is the mantissa, and \(-5\) is the exponent indicating the decimal point has been moved 5 places to the right.

Advantages:

  • Compactness: Simplifies the representation of very large or very small numbers.
  • Precision: Clearly indicates the significant digits in a number.
  • Ease of Calculation: Facilitates multiplication and division by dealing with exponents.

Applications:

  • Scientific Research: For representing measurements, distances (e.g., astronomical distances), and quantities (e.g., Avogadro’s number).
  • Engineering: For calculations involving large scales or very small dimensions (e.g., nanotechnology).
  • Mathematics: For simplifying complex calculations and solving equations involving very large or small numbers.

Scientific notation and floating point notation are both methods for representing real numbers, especially very large or very small ones. While they are related concepts, they have different applications and structures.

Scientific Notation:

  • Format: Expresses numbers as a product of a coefficient (mantissa) and a power of 10. \[ N = M \times 10^E \] Where \(N\) is the number, \(M\) is the mantissa (a decimal number between 1 and 10), and \(E\) is the exponent (an integer).
  • Usage: Commonly used in scientific and mathematical contexts to simplify the representation and manipulation of large or small numbers.
  • Example: The number 123,000 can be written as \(1.23 \times 10^5\).

Floating Point Notation:

  • Format: A more generalized form that can be implemented in computer systems, allowing for the representation of a wide range of values in binary form. \[ N = M \times B^E \] Where \(N\) is the number, \(M\) is the mantissa (represented in binary), \(B\) is the base (usually 2 for binary systems), and \(E\) is the exponent.
  • Components:
    • Mantissa: The significant digits of the number, stored in binary.
    • Exponent: Indicates the power of the base (2 in binary systems).
    • Sign Bit: Indicates whether the number is positive or negative.
  • Standard: Governed by the IEEE 754 standard, which defines the format for single precision (32-bit) and double precision (64-bit) floating point numbers.
  • Usage: Primarily used in computer systems and programming to represent real numbers with a balance between range and precision.
  • Example: The number 123.45 in IEEE 754 single precision might be represented with a specific combination of bits for the mantissa, exponent, and sign.

Key Differences:

  1. Representation:
    • Scientific Notation: Uses base 10 and is represented in decimal form.
    • Floating Point Notation: Often uses base 2 in binary form, suitable for computer systems.
  2. Application:
    • Scientific Notation: Used in academic, scientific, and everyday contexts for simplifying numbers.
    • Floating Point Notation: Used in digital systems, programming, and computing for efficient number representation and operations.
  3. Format Standardization:
    • Scientific Notation: Does not have a specific standard like IEEE but follows a general form \(M \times 10^E\).
    • Floating Point Notation: Strictly follows the IEEE 754 standard, defining specific bit allocations for mantissa, exponent, and sign.

Conclusion:

While both scientific and floating point notations serve to represent real numbers efficiently, scientific notation is more suitable for manual calculations and general use, whereas floating point notation is designed for computational efficiency and precision in digital systems.

By understanding and utilizing scientific notation, one can effectively manage and communicate precise numerical values in various fields of study and practice.

Repeating Decimals

Column

Repeating Decimals

Repeating Decimals

A repeating decimal (or recurring decimal) is a decimal number that has a sequence of digits that repeats infinitely. The repeating part of the decimal can be a single digit or a group of digits. In mathematical notation, repeating decimals are often represented by placing a bar (vinculum) over the repeating digits.

Examples:

  1. Single Digit Repeating:
    • \(\frac{1}{3}\) is represented as \(0.\overline{3}\), which means \(0.3333\ldots\) (with 3 repeating indefinitely).
  2. Multiple Digits Repeating:
    • \(\frac{1}{7}\) is represented as \(0.\overline{142857}\), which means \(0.142857142857\ldots\) (with the digits 142857 repeating indefinitely).

Characteristics:

  • Periodic Sequence: The repeating sequence (period) occurs after a certain number of digits.
  • Rational Numbers: Every repeating decimal represents a rational number (a fraction of two integers).

Converting a Repeating Decimal to a Fraction:

To convert a repeating decimal to a fraction, algebraic methods are often used. Here’s a step-by-step example for converting \(0.\overline{6}\) to a fraction:

  1. Let \(x = 0.\overline{6}\).
  2. Multiply both sides by 10 to shift the decimal point: \(10x = 6.\overline{6}\).
  3. Subtract the original equation from this new equation: \(10x - x = 6.\overline{6} - 0.\overline{6}\).
  4. Simplify the equation: \(9x = 6\).
  5. Solve for \(x\): \(x = \frac{6}{9} = \frac{2}{3}\).

So, \(0.\overline{6}\) is equivalent to the fraction \(\frac{2}{3}\).

Importance:

Repeating decimals are crucial in understanding the relationship between rational numbers and their decimal representations. They also appear frequently in calculations and real-world applications, making their understanding essential for mathematical literacy.

Videos

A repeating decimal, also called a recurring decimal, is a number whose decimal representation eventually becomes periodic (i.e., the same sequence of digits repeats indefinitely). The repeating portion of a decimal expansion is conventionally denoted with a vinculum so, for example,

\[ 1⁄7 = 0.\overline{142857} = 0.1428571428571428571...\]

The minimum number of digits that repeats in such a number is known as the decimal period.

Repeating Decimals - Videos