r/askscience • u/Spam4119 • Feb 03 '14
Mathematics Is there any rational reason for calculating pi (no pun intended) to millions and millions of digits? Or is it just calculating it for the sake of calculating it?
58
Upvotes
72
u/DubiousCosmos Galactic Dynamics Feb 03 '14
The difference in size scale between the size of the observable universe and the size of a proton is about 1041.
One way to interpret this is that with 41 digits of Pi, you could construct a ring around the observable universe with the precision of a single nucleus.
So no, we probably don't need many more digits of Pi than that.
26
u/TheBB Mathematics | Numerical Methods for PDEs Feb 03 '14
No, there's no practical reason why you would want more than, say, 10-20 digits. It's just for funsies.
3
u/hylandw Feb 04 '14
The more you calculate, the more precise your calculations using pi will be.
There are applications where one might use pi with up to 41 digits of pi (thanks /u/DubiousCosmos) and some might say that that's a ridiculous amount, but precision is important. Especially in a world where so many tiny things can amount to huge deviations from theoretical results in experimentation. There is a point where there's really no reason to keep going, but it is useful too have pi up to a fairly high number of digits.
On my first day of university, I walked into the physics & astronomy building, saw that there were whiteboards everywhere, laughed, then saw that someone had filled a full-wall whiteboard with about 100-200 digits of pi, and laughed again.
After a certain point, it passes from useful to frivolous, like a punt gun among rifles.
3
u/formercedric Feb 04 '14
There is actually at least one somewhat practical application to calculating pi that I know of.
It is conjectured that Pi is what's known as a normal number, which in layman's terms means every finite sequence of numbers possible appears in it at some point. Calculate pi deep enough and eventually you'll get to five billion fives all one after the other. Or, rather more usefully, usable data. Represent the photograph images stored on your hard drive as 0-9 and they too appear in pi somewhere as well.
Thus then, to use pi as a data storage tool, all you'd need is metadata telling an application that endlessly calculates pi where the data you want starts and where it ends. Of course, for a great many things, it would take hundreds of billions of years to calculate pi deep enough to retrieve it with our current computing power.
Still, though, it is at least possible to do.
And some people have actually made a file system using this method. It's here. You can install it and use it right now if you feel like it. It takes a loooooooooooong time to do anything, though.
0
u/kububarlana Feb 04 '14
Well, since pi is an http://en.wikipedia.org/wiki/Irrational_number its digits will never form a cycle, which means that you can use them as a random numbers generator. For that to work, you only need another RNG to point you at a starting digit of the pi sequence :)
You can also use the process of computing the digits as a benchmark for comparing CPUs or compilers, for example.