The decimal digits of Pi have no known ending: 3.14159265358979323846ā¦
Pi is a mathematical constant that is defined as the ratio of the circumference of a circle to its diameter (see image below for a graphical illustration). In mathematics, this is known as an irrational number, which is a fancy way of saying that it cannot be represented accurately using fractions of integers. Pi’s origins trace back to the Greek mathematical genius Aristotle when he tried to use polygons to determine the circumference of a circle. He eventually narrowed down the value of Pi between 3.1408 and 3.4129. All this happened in 250 B.C. Fast forward a few years to 2021, and throw in whole generations of mathematical geniuses in between 250 B.C and 2021 A.D, we have managed to precisely calculate Pi up to well over 50 trillion digits after the decimal point. And the end is still not in sight yet.
Image created by the author
All this muscle-flexing around the topic of calculating Pi digits brings us to the following questions: How many digits do we really need in real-life applications? Is it really necessary to calculate Pi precisely up to 50 trillion digits or more? In this article, Iāll be trying to answer these questions by working out practical examples as well as by touching upon the industrial standards around the usage of Pi.
Once upon a time, I used to work as an engineer. Engineers are creatures who are equipped with things known as āscientific calculatorsā. These are calculators that are more capable than the normal ones, including some minor programming capabilities. I am the proud owner of the one you see in the image below: a CASIO fx-991ES PLUS. It is a handy little thing. Such a scientific calculator comes with Pi stored in as a default mathematical constant. And as you can see from the image, my scientific calculator uses only the first 9 digits of Pi after the decimal point. To be precise, the ninth digit is rounded up. Does this mean that even engineers donāt need more than 9 digits of Pi after the decimal point? Why donāt we find out by trying stuff out on our own?
Photo taken by the author
Using Decimal Digits of Pi Practically
Let us say that we are interested in calculating the circumference of a circle that is 1 Kilometre (Km) in diameter (D). To see how many digits of Pi we need to accurately calculate the circumference, let us consider two versions of Pi:
Pi_Short = 3.141593 (6 digits after the decimal place)
Pi_Long = 3.141592653589793 (15 digits after the decimal place)
The formula for the circumference is Pi*D (where D is the diameter of the circle). When we calculate the circumference of the circle using the two versions of the Pi we considered, we get the following:
Math illustrated by the author
Based on this analysis, we can see that for a circle that is 1Km in diameter, the difference between the two versions of the Pi is less than 0.04 cm. What if we consider a super-long version of Pi? Letās do just that:
Pi_Super_Long = 3.1415926535897932384626433 (25 digits after the decimal place)
When we use this version of Pi to calculate the circumference, we get the following:
Math illustrated by the author
We originally noticed that we improved accuracy by less than 0.04 cm when we switched from Pi_Short to Pi_Long. In order to determine how much more accuracy we gained by switching from Pi_Long to Pi_Super_Long, we need to subtract (C1-C2) from (C1-C3). If we do that, we get the following:
Math illustrated by the author
As you can see, we have gained an extra accuracy of 0.000001021 cm by going through all this trouble.
In real-life applications, when we consider a scale of 1km diameter for a circle, errors of the order of 1cm or lesser are more than acceptable in most cases. So, I would say that 6 decimal digits of Pi are more than sufficient for most real-life applications. But who am I to say that? Letās look at what industry standards have to say next.
Industry Standards on Decimal Digits of Pi
When it comes to industries that are sensitive to calculation accuracy, the space industry is right at the top of the list. So, I ask the question: how many digits of Pi does NASA use? The answer: NASA uses the first 15 digits of Pi (our Pi_Long from before). NASAās interest seems to be up to a circular diameter of 125 billion kilometres. And if they use the first 15 decimal places of Pi, the error comes to around 3.81 cm (in the context of 12500000000000000 cm). So, NASA is okay with designing systems that consider this level of tolerance rather than loading their computers with higher digits of Pi.
Another industry that is very sensitive to calculation accuracy is the motorsport industry (where I used to work). The Federation Internationale de lāAutomobile (FIA), the governing body of Formula 1, uses the first four digits of Pi. Thatās right, back here on earth, F1 cars run fine with the first four digits of Pi.
Why Calculate Over 50 trillion Decimal Digits of Pi?
If NASA needs just the first 15 decimal digits of Pi and Formula 1 needs just the first 4, why do we hear people (or computers) calculating over 50 trillion digits of Pi? The answer lies in the human obsession with Pi as a mathematical constant. Computing higher digits of Pi requires complex mathematical procedures and algorithms. Academic and professional teams use Pi as an excuse to test and prove their latest clever algorithms and supercomputer architectures. Other than that, for practical applications, we currently do not need any more than the first 15 digits of Pi.
I hope you found this article interesting and useful. If youād like to get notified when interesting content gets published here, consider subscribing.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking āAcceptā, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookie
Duration
Description
_gat
1 minute
This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
__gads
1 year 24 days
The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_R5WSNS3HKS
2 years
This cookie is installed by Google Analytics.
_gat_gtag_UA_131795354_1
1 minute
Set by Google to distinguish users.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
IDE
1 year 24 days
Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
5 months 27 days
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Comments