{"id":641,"date":"2022-03-14T09:01:38","date_gmt":"2022-03-14T09:01:38","guid":{"rendered":"https:\/\/wellai.health\/blog\/?p=641"},"modified":"2022-03-14T09:19:20","modified_gmt":"2022-03-14T09:19:20","slug":"how-we-use-pi-the-most-important-number-in-the-universe-every-day","status":"publish","type":"post","link":"https:\/\/wellai.health\/blog\/how-we-use-pi-the-most-important-number-in-the-universe-every-day\/","title":{"rendered":"How we use Pi, the most important number in the universe, every day"},"content":{"rendered":"<h2><strong>Happy Pi Day!<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>For math geeks like us, this is one very special national holiday.\u00a0 It\u2019s a celebration of one of the most important numbers in history.\u00a0 <strong>3.14 and change \u2013 please read until the end, the \u2018change\u2019 is important.<\/strong>\u00a0 Not only it\u2019s important, but it\u2019s also beautiful.\u00a0 We use Pi almost every day, sometimes not realizing it.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Did you know that not only Pi is mentioned in the Bible, but it\u2019s also calculated there?\u00a0 We talk about it below.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>We\u2019ll talk about the history of Pi, the race for Pi\u2019s decimals, and why Pi is important in Machine Learning.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>History of Pi<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>To realize the importance of Pi, I\u2019d like to start with a little bit of history.\u00a0 We\u2019re not going to use any math formulas in this article, which is a bit eerie \u2013 talking about math without formulas.<\/p>\n<p>&nbsp;<\/p>\n<p>Most of us know of Pi as the exact (and therefore so elegant) ratio of a circle\u2019s circumference to its diameter.\u00a0 So anytime you think of a perfect circle, you must be thinking about Pi.<\/p>\n<p>&nbsp;<\/p>\n<p>There were so many mathematicians in history who invented applications that use Pi that there is no way we could list all of them.\u00a0 But let us try dropping a few names.<\/p>\n<p>&nbsp;<\/p>\n<p>Before the circle, there was polygon, which is, of course, an imperfect representation of a circle. Polygon was analyzed around 250 BC by the Greek mathematician <strong>Archimedes<\/strong>.[ This polygonal algorithm dominated for over 1,000 years, and as a result, Pi is sometimes referred to as \u201cArchimedes\u2019 constant\u201d.\u00a0\u00a0 Archimedes computed the upper and the lower bounds of Pi by drawing a regular hexagon inside and outside a circle, and successively doubling the number of sides until he reached a 96-sided regular polygon. By calculating the perimeters of these polygons, he proved that 223\/71 &lt; Pi &lt; 22\/7 (that is 3.1408 &lt; Pi &lt; 3.1429).<\/p>\n<p>&nbsp;<\/p>\n<p>The discovery of calculus by English scientist <strong>Isaac Newton<\/strong> and German mathematician <strong>Gottfried Wilhelm Leibniz<\/strong> in the 1660s led to the development of many infinite series for approximating Pi. Newton himself used an arcsin series to compute a 15 digit approximation of \u03c0 in 1665 or 1666, later writing \u201cI am ashamed to tell you to how many figures I carried these computations, having no other business at the time.\u201d\u00a0 Perhaps the most famous infinite series, the Taylor series, is an infinite sum of terms that are expressed in terms of the function&#8217;s derivatives at a single point. Taylor series are named after British mathematician <strong>Brook Taylor<\/strong> who introduced them in 1715. Several infinite series are described using Pi, including series for sine, tangent, and cosine, which are now referred to as the Madhava series or Gregory-Leibniz series.<\/p>\n<p>&nbsp;<\/p>\n<p>In 1656, British mathematician <strong>John Wallis<\/strong> developed the Wallis formula for Pi in his book Arithmetica Infinitorum.\u00a0 He defined Pi as the product of an infinite string of ratios made up of integers.<\/p>\n<p>&nbsp;<\/p>\n<p>Only over 350 years later, in 2015, American mathematician <strong>Tamar Friedmann<\/strong> and American particle physicist <strong>Carl Hagen<\/strong>, both at the University of Rochester, discovered the Wallis formula for Pi outside of mathematics &#8211;\u00a0 in quantum mechanics, to be precise.\u00a0 They derived the Wallis formula from the formula for the hydrogen atom\u2019s energy states.\u00a0 <a href=\"https:\/\/www.sciencealert.com\/formula-for-pi-has-been-discovered-hidden-in-hydrogen-atoms\">This discovery underscored Pi\u2019s omnipresence in math and science.<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>As mentioned earlier, Pi represents the ratio of a circle&#8217;s circumference to its diameter.\u00a0 The earliest known use of this formula was by Welsh mathematician <strong>William Jones<\/strong> in 1706.<\/p>\n<p>&nbsp;<\/p>\n<p>Perhaps the most well-known use of Pi is in <strong>the Euler equation<\/strong> developed by the Swiss mathematician <strong>Leonhard Euler<\/strong>.\u00a0 Often described as \u201c<a href=\"https:\/\/www.sciencealert.com\/pi-and-its-role-in-the-most-beautiful-formula-in-mathematics\">the most beautiful formula in mathematics<\/a>&#8220;, Euler seems never to have written it down &#8211; naming conventions in mathematics are a bit dodgy. Rather, it is a special case of Euler\u2019s discovery that exponential growth and circular motion are equivalent, given by the following formula:\u00a0 exp(i*theta) = cos(theta) + i*sin(theta).\u00a0 Though, not explicit in this formula, Pi has an integral part in its derivation.\u00a0 In fact, arguments for cos and sin functions are themselves functions of Pi.\u00a0 An American theoretical physicist <strong>Richard Feynman<\/strong> called this \u201cthe most remarkable formula in mathematics\u201d.\u00a0 For cos and sin functions, Euler was using the concept of the arc length which provided a new way of representing the measure of an angle, and we now call this measure of angles \u201cradian measure.\u201d For example, 360 degrees = 2Pi radians, 180 degrees equals Pi radians, and 90 degrees would equal Pi\/2 radians.\u00a0 All these measures are always based on a special circle that has a radius of 1.\u00a0 Cos and sin, and therefore Pi, are the key in modeling vibrating strings or radio waves.<\/p>\n<p>&nbsp;<\/p>\n<p>The Euler equation has its applications in many fields of science.\u00a0 It has been most widely used in fluid dynamics.\u00a0 The Euler equation was first presented by Euler to the Berlin Academy in 1752.\u00a0 The Euler equation was among the first partial differential equations to be written down, after the wave equation. In Euler&#8217;s original work, the system of equations consisted of the momentum and continuity equations, and thus was underdetermined except in the case of an incompressible flow. An additional equation, which was called the adiabatic condition, was developed by French mathematician <strong>Pierre-Simon Laplace<\/strong> in 1816.<\/p>\n<p>&nbsp;<\/p>\n<p>During the second half of the 19th century, it was found that the equation related to the balance of energy must at all times be kept for compressible flows, and the adiabatic condition is a consequence of the fundamental laws in the case of smooth solutions. With the discovery of <strong>Albert Einstein<\/strong>\u2019s special theory of relativity, the concepts of energy density, momentum density, and stress were unified into the concept of the stress-energy tensor, and energy and momentum were likewise unified into a single concept, the energy-momentum vector.<\/p>\n<p>&nbsp;<\/p>\n<p>The fundamental equation of non-equilibrium systems developed by a French physicist <strong>Paul Langevin<\/strong> is called the Langevin Equation, or the <strong>Langevin Law<\/strong>.\u00a0 It contains both frictional forces (explicitly dependent on Pi) and random forces. The fluctuation-dissipation theorem relates these forces to each other. The random motion of a small particle (about one micron in diameter) immersed in a fluid with the same density as the particle is called <strong>Brownian Motion<\/strong>. Early investigations of this phenomenon were made by Scottish biologist <strong>Robert Brown<\/strong> on pollen grains and also dust particles or another object of colloidal size. The modern era in the theory of Brownian motion began with <strong>Albert Einstein<\/strong>. He obtained a relation between the macroscopic diffusion constant D and the atomic properties of matter.\u00a0 Once again, Pi is an important part of that formula.\u00a0 The theory of Brownian motion has been extended to situations where the fluctuating object is not a real particle at all, but instead some collective property of a macroscopic system. This might be, for example, the instantaneous concentration of any component of a chemically reacting system near thermal equilibrium.<\/p>\n<p>&nbsp;<\/p>\n<p>One important field of study that emerged from the Langevin Law is Stochastic Thermodynamics.\u00a0 It is an emergent field of research in statistical mechanics that uses stochastic variables to better understand the non-equilibrium dynamics present in many microscopic systems such as colloidal particles, biopolymers (e.g. DNA, RNA, and proteins), enzymes, and molecular motors.<\/p>\n<p>&nbsp;<\/p>\n<p>What does the Langevin Law have to do with Pi?\u00a0 Pi is an integral part of this important equation.\u00a0 For one thing, as already mentioned, Pi appears in the frictional term.\u00a0 However, most importantly, the Pi comes through cosh, or hyperbolic cosine, which is derived from cosine using the Euler equation.<\/p>\n<p>&nbsp;<\/p>\n<p>Named after a Polish-French physicist <strong>Marie Curie<\/strong>, <a href=\"https:\/\/link.springer.com\/article\/10.1134\/S1063784216120112\">the Curie Law is a special case of the Langevin Law<\/a>.\u00a0 The Curie Law describes the magnetic susceptibility of a ferromagnet in the paramagnetic region above the so-called Curie point, which is the temperature above which certain materials lose their permanent magnetic properties.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>The Race to Compute Decimals of Pi<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>Evidence exists that the Babylonians approximated Pi in base 60 around 1800 B.C.E.\u00a0 In fact, they believed that Pi = 25\/8, or 3.125. The ancient Egyptian scribe <strong>Ahmes<\/strong>, who is associated with the famous Rhind Papyrus, offered the approximation 256\/81, which works out to be 3.16049.\u00a0 There\u2019s even an implicit value of Pi given in the <strong>Bible<\/strong>. In 1 Kings 7:23, a round basin is said to have 30-cubit circumference and 10-cubit diameter. Thus, in the Bible, it implicitly states that \u03c0 equals 3 (30\/10).<\/p>\n<p>&nbsp;<\/p>\n<p>Not surprisingly, as humankind\u2019s understanding of numbers evolved, so did its ability to better understand and thus estimate \u03c0 itself. In the year 263, the Chinese mathematician <strong>Liu Hui<\/strong> believed that Pi = 3.141014. Approximately 200 years later, the Indian mathematician and astronomer <strong>Aryabhata<\/strong> approximated Pi with the fraction 62,832\/20,000, which is 3.1416. Around 1400, the Persian astronomer <strong>Kashani<\/strong> computed Pi correctly to 16 digits.<\/p>\n<p>&nbsp;<\/p>\n<p>A Swiss mathematician <strong>Johann Lambert<\/strong> showed in 1761 that Pi is an irrational number, meaning it is not equal to the quotient of any two whole numbers, meaning that it has an infinite number of decimals with non-repeated sequences.\u00a0 And the race for who get the largest number of decimals of Pi started\u2026<\/p>\n<p>&nbsp;<\/p>\n<p>German theoretical physicist <strong>J\u00f6rg Arndt<\/strong> concluded that a few hundred digits would suffice for any scientific application. Despite this, people have worked strenuously to compute Pi to thousands and millions of digits.\u00a0 With the growth of computer power, the race to compute decimals of Pi has become more heated.\u00a0 For example, in 1949, using an inverse tangent (arctan) infinite series, a team led by <strong>George Reitwiesner<\/strong>, and American mathematician and <strong>John von Neumann<\/strong>, a Hungarian-American mathematician that same year achieved 2,037 digits with a calculation that took 70 hours of computer time on the ENIAC computer.\u00a0 von Neumann is, of course, famous for his work on the Manhattan Project during WWII, with a Hungarian-American theoretical physicist <strong>Edward Teller<\/strong> and a Polish-American mathematician <strong>Stanislaw Ulam<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p>In 2019, <strong>Emma Haruka Iwao<\/strong> and her colleagues at Google used the power of 25 Google Cloud virtual machines to calculate for 31,415,926,535,897 digits of Pi within 121 days.<\/p>\n<p>&nbsp;<\/p>\n<p>In 2020, <strong>Timothy Mullican<\/strong>, a data scientist from Alabama, United States, calculated up to 50 trillion digits of Pi and was recognized for his work by the Guinness Book of Records.<\/p>\n<p>&nbsp;<\/p>\n<p>In 2021, a team from the University of Applied Sciences Graub\u00fcnden in Switzerland calculated for 62.8 trillion digits of Pi.\u00a0 It took the team 108 days and 9 hours. That&#8217;s 3.5 times faster than Mullican&#8217;s record and almost twice as fast as Google\u2019s efforts.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Why is Pi important in Artificial Intelligence and Machine Learning?<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>The topic is near and dear to my heart.\u00a0 Let\u2019s just say that without Pi, there won\u2019t be artificial intelligence.\u00a0 Here are just a few examples.<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong>Eigenvalues<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Many of the appearances of Pi in the formulas of mathematics and the sciences have to do with its close relationship with geometry. However, Pi also appears in many natural situations having apparently nothing to do with geometry.\u00a0 For example, Pi is the smallest singular value of the derivative operator on the space of particular functions on [0, 1] vanishing at both endpoints.\u00a0 Lambda is an eigenvalue of the second derivative operator in the equation f\u2019\u2019(t) = -lambda*f(x).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/towardsdatascience.com\/the-essence-of-eigenvalues-and-eigenvectors-in-machine-learning-f28c4727f56f\">Eigenvalues are a critical concept<\/a> in Principal Component Analysis (PCA), Spectral Clustering (such as K-Means), Computer Vision and Gradient, the king of neural networks.<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"2\">\n<li><strong>Fourier Transform.<\/strong><\/li>\n<\/ol>\n<p>Pi also appears as a critical spectral parameter in the Fourier transform developed by a French mathematician <strong>Jean-Baptiste Joseph Fourier<\/strong>.\u00a0 In 1807, Fourier showed that any waveform could be written as an infinite sum of sinusoids.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/analyticsindiamag.com\/how-fourier-transform-is-used-in-deep-learning\/\">Fourier transform is a critical part of a neural network.<\/a>\u00a0 In particular, Fourier transform is used heavily in deep learning models such as Convolutional Neural Networks (CNNs).<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"3\">\n<li><strong>The Gaussian function.<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>The Gaussian function, which is the probability density function of the normal distribution with mean mu and standard deviation sigma, naturally contains Pi.\u00a0 It was developed by German mathematician <strong>Johann Carl Friedrich Gauss<\/strong> and is perhaps the most well-known function in the fields of statistics and probability.\u00a0 Pi is the unique constant making the Gaussian normal distribution exp(-Pix^2) equal to its own Fourier transform.<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"4\">\n<li><strong>Cauchy distribution.<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Another well-known probability density function explicitly containing Pi is called The Cauchy distribution, named after a French mathematician <strong>Augustin-Louis Cauchy<\/strong>.\u00a0 Unlike the Gaussian function and other probability models under the Central Limit Theorem, the Cauchy distribution has no finite moments of order greater than or equal to one and it has no moment generating function. This makes the Cauchy formula quite useful for analytical modeling of any field dealing with infinite exponential growth.<\/p>\n<p>&nbsp;<\/p>\n<ol start=\"5\">\n<li><strong>Number Theory.<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Euler&#8217;s results in infinite series led to the Number Theory result that the probability of two random numbers being relatively prime (that is, having no shared factors) is equal to 6\/Pi^2.\u00a0 <a href=\"https:\/\/www.livescience.com\/ramanujan-machine-created.html\">The Number Theory was used in the early machine learning models to develop a pattern recognition algorithms.<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>We hope we convinced you that Pi is the most important constant in math, science and machine learning.<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>Please check out this and other latest WellAI blogs, articles, opinions, videos and press releases on AI trends and digital health innovations at\u00a0<a href=\"https:\/\/wellai.health\/blog\/\">https:\/\/wellai.health\/blog\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Stay healthy!\u00a0 Stay knowledgeable about your health.<\/p>\n<p>&nbsp;<\/p>\n<p>WellAI Team<\/p>\n<p><a href=\"https:\/\/wellai.health\/\">wellai.health<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Happy Pi Day! &nbsp; For math geeks like us, this is one very special national holiday.\u00a0 It\u2019s a celebration of<\/p>\n","protected":false},"author":3,"featured_media":642,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[184],"tags":[221,219,226,220,222,217,218,223,224,225,144,229,216,227,215,228],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/wellai.health\/blog\/wp-content\/uploads\/2022\/03\/How-we-use-Pi-e1647248479505.jpg?fit=700%2C395&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/posts\/641"}],"collection":[{"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":2,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/posts\/641\/revisions\/644"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/media\/642"}],"wp:attachment":[{"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wellai.health\/blog\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}