Pi Day is celebrated on March 14th (3/14) around the world. Pi (Greek letter “π”) is the symbol used in mathematics to represent a constant — the ratio of the circumference of a circle to its diameter — which is approximately 3.14159.

The irrational number Pi has been calculated to over one trillion digits beyond its decimal point. In addition, as an irrational and transcendental number, it will continue infinitely without repetition or pattern. Only a handful of digits are needed for typical calculations, however, Pi’s infinite nature makes it a fun challenge to memorize, and to computationally calculate more and more digits.
Pi to a 1000 digits
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989
Calculate Pi (using the Nilakantha series) and Python
P = 3
MC = 1
C = 1
for MC in range(1,50000):
P = P + (4/((C+1)*(C+2)*(C+3)) – 4/((C+3)*(C+4)*(C+5)))
PI = ‘%10.60f’%(P)
print (PI)
C = C + 4
You will need run this code billions of iterations to begin to approach calculating Pi. Of course, that is why Pi is so fun!
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989
Note: 22/7 is NOT Pi
By measuring circular objects, it has always turned out that a circle is a little more than 3 times its width around. In the Old Testament of the Bible (1 Kings 7:23), a circular pool is referred to as being 30 cubits around, and 10 cubits across. The mathematician Archimedes used polygons with many sides to approximate circles and determined that Pi was approximately 22/7. The symbol (Greek letter π) was first used in 1706 by William Jones. A ‘p’ was chosen for ‘perimeter’ of circles, and the use of π became popular after it was adopted by the Swiss mathematician Leonhard Euler in 1737. In recent years, Pi has been calculated to over one trillion digits past its decimal. Only 39 digits past the decimal are needed to accurately calculate the spherical volume of our entire universe, but because of Pi’s infinite & pattern less nature, it’s a fun challenge to memorize, and to computationally calculate more and more digits.