Contents:

Free course: “Quick start in Python»
Learn moreNumbers play a vital role in our world, and we encounter them constantly. However, there are numbers that cannot be exactly expressed as a fraction—these are irrational numbers. They were discovered as early as the 7th century BC, when ancient mathematicians realized that not all natural numbers can take a square root. Irrational numbers, such as π and √2, have an infinite number of decimal places and cannot be represented as simple or decimal fractions. This discovery was an important step in the development of mathematics and opened new horizons for research in the field of numbers and geometry.
Irrational numbers are an important category of numbers in mathematics. They differ from ordinary fractions and integers in that they cannot be expressed as simple fractions. That is, irrational numbers cannot be written in the form a/b, where a and b are integers and b is nonzero. Classic examples of irrational numbers are the square root of two and π.
Furthermore, irrational numbers have an infinite, non-recurring decimal notation, making them unique compared to rational numbers, which can have a finite or recurring decimal notation. The importance of irrational numbers is evident not only in theory but also in practical applications, such as geometry and analysis.
Working with irrational numbers is also quite simple in the Python programming language. For example, you can use the math library to calculate roots and work with π. Thus, understanding irrational numbers and their properties not only broadens mathematical horizons but also opens new horizons in programming.
Irrational numbers are an important category in mathematics, distinct from integers and rational numbers. They cannot be expressed as a fraction where the numerator and denominator are integers. Examples of irrational numbers include the square root of 2, π (pi), and e. These numbers have infinite, non-repeating decimal representations, making them unique.
Irrational numbers play a key role in various fields of mathematics, including geometry, analysis, and number theory. For example, in geometry, irrational numbers are essential for accurately calculating the length of the diagonal of a square or circle. In analysis, they are used to study limits and continuity.
Understanding irrational numbers helps deepen knowledge of number systems and their properties. These numbers not only enrich mathematical theories, but also have practical applications in science, engineering, and other disciplines. Studying irrational numbers is an important step towards a deeper understanding of the numerical world and its patterns.
- Definition
- Properties
- Differences from rational numbers
- Use in geometry
- Examples of working in Python
- Review

Skillbox expert in computer networks and cybersecurity. Author of the "Curly Microphone" Telegram channel, where he shares current news and useful tips on cybersecurity. Gain useful knowledge and improve your skills in network management and information security. Follow updates and stay up to date with the latest trends in the world of technology.
Irrational Numbers: Definition
An irrational number is a number that cannot be expressed as a fraction, where the numerator is an integer and the denominator is a natural number. This definition may seem complicated, but we will try to explain it more clearly. Irrational numbers cannot be represented in decimal form with a finite number of digits or period, which distinguishes them from rational numbers. Examples of irrational numbers include such familiar values as the square root of two, pi, and e. These numbers have infinite, non-recurring decimal representations, making them unique in the mathematical world. Understanding irrational numbers is important for learning more complex mathematical concepts and plays a key role in various fields of science and engineering.

An irrational number is a number that can be represented as An infinite, non-recurring fraction. The term "infinite" indicates that the number has an infinite number of digits after the decimal point. The word "non-recurring" implies the absence of a repeating sequence in these digits. Unlike rational numbers, which can be expressed as a fraction, irrational numbers cannot be exactly represented as a finite or recurring decimal fraction. Examples of irrational numbers include the square root of two, pi, and e. These numbers play an important role in mathematics, physics, and other sciences because their unique properties allow them to solve complex problems and describe various phenomena.
The number √2 is irrational. When trying to calculate its value using a calculator, we get 1.4142135623, and so on. The decimal fraction continues indefinitely, and there is no pattern to its sequence. Irrational numbers like √2 cannot be exactly expressed as a common fraction, making them interesting to study in mathematics. These numbers play an important role in various fields, including geometry and analysis, and highlight the richness and diversity of number systems.
Irrational numbers are an important category of numbers in mathematics. They cannot be expressed as a fraction where the numerator and denominator are whole numbers. Examples of irrational numbers include such familiar numbers as √2, π, and e. √2, for example, is the square root of 2 and is approximately equal to 1.41421356. The number pi, which is the ratio of a circle's circumference to its diameter, is approximately 3.14159 and plays a key role in geometry and trigonometry. The number e, approximately 2.71828, is the basis of the natural logarithm and finds application in various fields, including financial modeling and probability theory. These examples highlight the diversity of irrational numbers and their importance in mathematical research and applications.
- Pi: π = 3.1415926535…
- Euler's number: e = 2.7182818284…
- Golden ratio: φ = 1.6180339887…
- √2 = 1.4142135623…
- √3 = 1.7320508075…
- √5 = 2.2360679774…
- √7 = 2.6457513110…
- √11 = 3.3166247903…
An interesting fact is that, It can be a great way to grab attention and spark interest in your audience. Such facts often contain unique and unexpected insights that can enrich readers' knowledge and make the content more engaging. Using interesting facts in texts not only increases engagement but also promotes better retention. It's important to choose facts that are relevant to the topic and context so they fit seamlessly into the overall meaning of the material. This approach helps retain user attention and improves the overall structure of the content, which in turn has a positive impact on SEO.
The irrational number √2 was first discovered by one of Pythagoras's students while searching for the hypotenuse of an equilateral triangle. This discovery had a significant impact on the perception of mathematics, which until then had been considered a rigorous and precise science. The emergence of infinite numbers such as √2 has challenged traditional notions of numbers and their properties, changing the concept of mathematics as a well-defined field of knowledge.
The number π (pi) is one of the most famous examples of irrational numbers. Scientists continue to compete to calculate the maximum number of decimal places for this number. In 2022, a team of developers from Google set a world record by calculating approximately 100 trillion digits. However, π still does not exhibit a repeating period, confirming its irrational nature. Interest in π remains unabated, and research in this field continues to attract the attention of mathematicians and technologists around the world.
Irrational numbers are infinite sequences, which creates the hypothetical possibility of encountering your phone number, date of birth, or any other encoded information in them. Given the infinity of these numbers, it can be argued that such coincidences can occur many times. This phenomenon attracts the attention of both mathematicians and number lovers, highlighting the uniqueness and mystery of irrational numbers in the world of mathematics.

How are irrational numbers different from rational numbers?
Rational numbers are numbers that can be expressed as a fraction, that is, as the result of dividing two whole numbers. For example, the number 0.5 can be represented as the fraction 5/10, and the whole number 6 as 6/1. Rational numbers include both positive and negative values, as well as zero. They are an important part of mathematics and are used in various fields, including science, engineering, and finance.
In fractions, when the numerator is divided by the denominator, we get a clear and predictable result. This can be either a whole number or a decimal fraction. In some cases, the result can be an infinite repeating fraction, where there is a repeating value after the decimal point. Understanding these concepts is an important aspect of the mathematical analysis of fractions and their properties.
Irrational numbers have a unique structure. No matter how hard you try, they will always be represented as an infinite, non-repeating decimal fraction. An example of such a number is pi, which is approximately 3.1415926535... This is why irrational numbers cannot be expressed as a fraction, as no two integers can divide to produce such a result. Such numbers play an important role in mathematics and various scientific disciplines, highlighting the richness and complexity of the number system.
Irrational and rational numbers together form the set of real numbers that we actively use in everyday life for various calculations. Real numbers cover a wide range of values and are the basis of the mathematical operations we encounter daily. However, beyond this set, there are other types of numbers, such as imaginary numbers, which represent a separate and interesting area of study in mathematics.

Properties Irrational numbers
Irrational numbers, like other numerical categories, have unique properties. Let's consider the main ones.
Adding an irrational number to a rational one always results in an irrational number. This is because irrational numbers cannot be represented as a fraction, and adding a rational number, which can be expressed as a fraction, does not change their properties. Thus, the result of the addition retains its irrationality.
π + 2 = 3.1415926535… + 2 = 5.1415926535…
In this expression, π, or pi, is approximately equal to 3.1415926535. When this number is added to 2, we get a result of 5.1415926535. Pi plays an important role in mathematics, especially in geometry, where it is used to calculate the circumference and area of circles. Adding pi to other numbers, such as 2, demonstrates its application in various mathematical calculations.
The square root of two (√2) is approximately 1.4142135623. Adding 3 to this value gives approximately 4.4142135623. This simple mathematical equation illustrates the properties of irrational numbers and demonstrates how simple operations can lead to more complex results.
The rule also applies to the operation of subtraction.
The number pi, equal to 3.1415926535…, minus 3, is equal to 0.1415926535…. This value is the result of subtracting 3 from pi. The difference between pi and 3 can be useful in various mathematical calculations and applications related to geometry and trigonometry. The value of pi is used to determine the circumference and area of a circle, so understanding its properties, including subtraction, is important for students and professionals in mathematics.
The solution to the equation √7 − 1.645 demonstrates the calculation of the square root of seven, which is approximately 2.6457513110. Subtracting 1.645 yields 1.0007513110. This process illustrates the use of square roots in mathematics, which can be useful in various problems involving algebra and geometry. A proper understanding of square root operations and their properties is an important aspect of mathematics education. Multiplying an irrational number by a rational number results in an irrational number. This rule is important in mathematics and helps us understand the properties of numbers. Irrational numbers, such as √2 or π, cannot be expressed as a fraction, while rational numbers are fractions where the numerator and denominator are whole numbers. When multiplying an irrational number by any non-zero rational number, the result remains irrational. This property plays a key role in various mathematical problems and theorems, making it important to study.
The product of pi and 8 is 3.1415926535… multiplied by 8, which gives 25.1327412287… This value represents the circumference of a circle with a diameter of 8 units. Knowledge of such mathematical calculations is useful in a variety of fields, including engineering and architecture, where accurate measurements are critical.
The square root of five multiplied by three is 2.2360679774… Multiplying this value by three gives 6.7082039324… This result can be used in a variety of mathematical calculations and applications where an accurate value for a product is required. The proper use of roots and their multiplication plays an important role in mathematics, especially in algebra and geometry.
When subtracting one irrational number from another, the result can be either rational or irrational. Irrational numbers, which have infinite non-repeating decimal fractions, can be combined in various ways, leading to a variety of results. For example, if you subtract one irrational number from another irrational number, the result may be rational, as in the case of the square root of 2 minus the square root of 2, which is 0, or remain irrational, as in the case of the square root of 2 minus 1. Thus, the importance of studying the properties of irrational numbers and their interactions opens new horizons in mathematics.
Pi (π) is a mathematical constant equal to approximately 3.1415926535. If you subtract pi from itself, the result is zero. This demonstrates a unique property of pi that plays an important role in mathematics and geometry. Understanding the value of pi and its applications is important for students and professionals in science, technology, engineering, and mathematics (STEM).
The difference between the square roots of √3 and √2 is 1.732050807… minus 1.4142135623… This calculation yields a result of 0.3178372451…, which is the exact value of the difference between these two irrational numbers. Understanding such square root operations is important in mathematics because it helps develop skills in working with irrational expressions and deepens knowledge of number systems.
When adding or multiplying two irrational numbers, the result may be either a rational or an irrational number. This depends on the specific values and properties of the original numbers. For example, the sum of two irrational numbers can yield a rational result if they are the roots of the same equation. On the other hand, the product of two irrational numbers can also be either rational or irrational, depending on their interaction. It is important to keep in mind that the properties of irrational numbers can manifest themselves differently in different mathematical operations.
The sum of π and π is 3.1415926535… + 3.1415926535… = 6.2831853071… , which is equivalent to 2π. This mathematical expression demonstrates the importance of π in geometry and trigonometry. Pi is the ratio of a circle's circumference to its diameter and is an irrational number, making it significant in various fields of science and technology. Understanding the properties of π and its derivatives, such as 2π, helps in solving problems involving circles and angles.
The product of the roots of √3 and √27 is √81, which gives 9.
Irrational Numbers in Geometry
An irrational number can be determined by calculating the length of the hypotenuse of an equilateral triangle with sides equal to one. In this case, the length of the hypotenuse is calculated using the Pythagorean theorem and is equal to √2. This value is irrational because it cannot be expressed as a fraction, making it an important object of study in mathematics. Thus, irrational numbers like √2 play a key role in geometry and number theory, opening new horizons for understanding number systems.

Calculating the circumference of a circle is impossible without using the irrational number π (pi). To determine the circumference, use the formula: L = πD or L = 2πr, where L denotes the circumference, D is the diameter, and r is the radius. This means that pi is the ratio of a circle's circumference to its diameter. Understanding this ratio is important not only in mathematics but also in various sciences, such as physics and engineering, where precise measurements and calculations play a key role.

Working with irrational numbers in Python
In this tutorial, we'll look at how to print irrational values to the console using Python. Python programming. To complete this task, we'll use the math module to work with constants and extract roots, as well as the Decimal class from the decimal module to improve the accuracy of calculations. We'll begin by importing the necessary objects to get started.
The math module provides three important constants: pi, two pi, and Euler's constant. You can easily display their values. These constants are frequently used in mathematical calculations and are widely used in various fields of science and engineering. Using precise values for these constants improves the accuracy of calculations and the quality of results.
The number of decimal places is limited to 15, despite the fact that the values in question are irrational. This is because the variable data type is set to float, which limits the storage accuracy of larger values. It is important to be aware of these limitations when working with numerical data in programming to avoid loss of precision and incorrect calculations.
In this article, we will look at how to find the square root of 2 using the sqrt() function from the math module, as well as the special exponentiation operator **. This will allow us to understand how these tools work in Python and how they can be used for calculations. The sqrt() function provides a simple way to obtain a square root, while the ** operator allows for exponentiation, which can also be used to find roots. Both methods are important tools for mathematical operations in programming.
Both methods function similarly, but the output is limited to 16 digits. For increased precision, it is recommended to use the Decimal class. To do this, you need to create an object and assign it to the variable x, setting the prec (precision) parameter to a value such as 10000. Then you should call the sqrt() method on this variable, which will allow you to get a more precise result of the square root calculation.
We got 10,000 decimal places when calculating the square root of 2. Other irrational numbers can be explored in a similar way. For example, the square roots of 3, 5, and other numbers also have an infinite number of decimal places. These irrational values are of interest not only to mathematicians but also to programmers working with numerical calculations. Studying such numbers can help in developing algorithms for more accurate calculations and mathematical modeling.
Finally, let's consider the calculation of the irrational number pi based on the characteristics of our planet. The circumference of the Earth is approximately 40,075.017 kilometers, while the diameter is 12,756 kilometers. Using the formula for calculating the circumference of a circle L = πD, we can obtain the value of Pi using the following formula: π = L/D. Thus, by substituting known values, we can determine Pi taking into account the actual size of the Earth.
We have obtained an approximate value of Pi, where the accuracy matches to three decimal places. This is due to the fact that the original data was approximate. As a result, we again have an irrational number with an infinite period. Pi is an important constant in mathematics and is widely used in various fields such as geometry, physics, and engineering. Its unique properties make it a subject of study and interest for scientists and students.
Briefly about the main thing
In this article, we examined the concept of irrational numbers, their basic properties, and even demonstrated a fragment of infinite chaos using Python code. Irrational numbers are an important part of mathematical analysis and have unique characteristics that distinguish them from rational numbers. We also discussed how these numbers can be represented in calculations and what meanings they have in different mathematical contexts.
To summarize the key aspects:
- Irrational numbers are infinite decimal fractions with a non-repeating value after the decimal point.
- This distinguishes them from rational numbers, which can also be infinite fractions but always contain a repeating period after the decimal point.
- However, both types of numbers belong to the same set of real numbers.
- The most famous representative of the irrational set is the number pi (π = 3.141592…). It is most often used in geometry to find the circumference of a circle.
- All mathematical operations apply to irrational numbers: addition, subtraction, multiplication, division, raising to a power, and root extraction.
Read also:
- Rational Numbers: Definition, Properties, and Examples
- "I'm 47, and I'm still wondering what other IT course to take": A top manager's path in data science
- Mathematics for juniors: What you need to review before a data science interview

