A Much Bigger Piece Of Pi
Punk_Rock_Johnny points to an AP story on Pi-obsessed Professor Yasumasa Kanada. A snippet from the story: "Kanada and a team of researchers set a new world record by calculating the value of pi to 1.24 trillion places, project team member Makoto Kudo said yesterday. The previous record, set by Kanada in 1999, was 206.158 billion places." Trillion!
"
Sig (appended to the end of comments you post, 120 chars)
Does the problem that pi can't be expressed in decimal notation extend to other base systems? For example, if you tried to write pi out in binary or hex would you encounter the same problem? Is there a special base system (other than base pi) which can describe pi in a finite number of digits?
Someone you trust is one of us.
In the book version of Contact by Carl Sagan, but skipped in the Jodie Foster movie, was the notion that the aliens had discovered proof that the universe was created by a higher intelligence. A God or society of Gods far higher and more advanced than the aliens. The whole point of dragging Human-kind to that remote beach to talk with daddy was to tell Human-kind that it was time for them to look for God's signature on this universe.
As any artist, the creator signed the creation. Where? Deep into the insignificant but irrefutably valid digits of several of the fundamental mathematical constants such as pi and e.
The main character finds one of the signatures at the end of the book: if calculating digits of pi in base 11, after a few million or billion places, a 500x500 digit span is almost entirely zeros. If the span was rendered as a square of pixels, the non-zero digits drew a perfect circle inscribed in the square. A circle in a square. The key concept defining pi, in the digits of pi itself. The whole way the universe works is affected by that constant, so any such 'design' in it has, if you pardon the pun, a transcendental import.
Why base 11? It's left to the reader to decide, but I expect Sagan wrote it because it is considered one of the possible designs of the universe, one of the string theories is based on an 11-dimensional all-inclusive physics model. As the alien explains to the main character, it wouldn't be base 10, because what's the likelihood that the creator also happened to have ten fingers?
[
You can calculate Pi by doing:
..) x 4
(1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 +
Obviously the more iterations you do, the closer you will be to the 'true' value of Pi.
So if I did my math correctly:
:-)
1240000000000 characters * 8 bits/character = 9920000000000 bytes
9920000000000 bytes/ 1024000 = 9687500 MB
9687500 MB = 9.6875 TB
Thats a pretty darn big info.txt file!
I think I'll just use the 32 byte version for my SIG.
3.14
Pi is represented usually by a fraction or relatively simple equation, it's just the division that makes the number go on for ever.
... but these are just approximations; 22/7 is a good enough approximation a lot of the time, but that's just an approximation too)
Nope. If pi was rational (a fraction), it wouldn't go on for ever without repeating. (reference)
In fact pi is irrational, i.e. there are no integers p, q such that pi = p / q. (proof)
You can approximate pi as a fraction, which is what projects like this do. (pi is approximately equal to 31/10, or 314/100, or 31416/1000, or
So who sets the limits? Why didn't Kanada just let his computer algorithm run for another year or even just another few minutes to get an even more accurate number? Who decided 1.2 trillion digits was enough and why?
It's just intersting to note that the measurement objective reality is always hampered by subjective, practical matters. And it might also prove that it is impossible for man to ever know the universe---it's just too damn expensive! I'm sure someone out there has thought about this before.
<a href="http://www.joblessjimmy.com">Work is dumb and so is Jobless Jimmy.</a>
Why waste all that space? You can write any number from 0 to 255 in 1 byte, any number from 0 to 65355 in 2 bytes, and 0 to 4.2billion in 4 bytes.
Anyone care to do the math about how much space you need (uncompressed)? (I cant cause I'm dumb)
P.S. Does Pi compress very well?
What the heck is your calculation supposed to calculate?
.1% wastage)
1.24T characters = 1.24TB
at 1 character per byte.
Simple as that.
The data _could_ be represented as 4.12Tb = 515GB if it were converted to binary.
However, you _really_ don't want to do radix conversion on numbers that large if you have the chance of avoiding it.
If you wanted to store it in packed decimal instead:
2 digits/byte (PBCD) : 620GB
(4 digits/short likewise)
9 digits/word : 551GB
19 digits/64bits : 522GB
So you can get within 1% of the minimum size (515GB) simply by packing the digits into 64bit words in chunks of 19 digits.
(256bit chunks could hold 77 digits, and compress the size down to 515.3GB, which is
THL.
Keeping
I'm not trying to be flamebait here, but I'm confused on why Math doesn't deal with reality very well.
Example:
Using Standard measurements, a 10ft length can be split into three equal lengths of 3ft 4in.
Why can't that same 10' length be broken with decimal math? Why is it 3.33333333333...ad infinitum?
Also:
If I were to take a 10' length and bend it on itself so it made a circle I have a 10' circumfrence right? Then in theory I could get out my ruler and measure the radius and get a measurement that made sense. I can get real numbers by measuring, but the math doesn't agree...Why?
-- Wiccan Army, 13th Airborne Division "We will not fly silently into the night"
A google only has 100 zeros, thus 100 places.
:-P)
:-)
10^trillion is 1 followed by 1 trillions 0's... Assuming we are following the american system that would be equivalent to.
10^(10^12)
Okay... now.. let's get some interesting facts with this.
The absolutely smallest length measurable by quantum theory is the planck length which is approx 10^-34 m. Needless to say, if we have a diameter of an incredibly small perfect circle, we'll know it's circumference beyond what is possible by quantum theory (but since there are no perfect circles, and quantum theory adds probability, this doesn't mean anything really useful.
Now, since we know the smallest measurable... lets look at what the estimates for the size of the universe are. Recent estimates put it as 10 billion light years in radius source
Which works out to about... (assuming american notation on billion)
10^9 * 300,000,000 m/s* 365*24*3600 ~= 10^25 m
Okay... now if we were to measure the circumference to as accurate as allowed by quantum theory we'd have.
pi*2.10^25 ~= 6.28*10^26 10^27 with an accuracy of about 34 decimals...
So... to get perfect accuracy as allowed by quantum theory we would have at most 35 decimal places afterwards... therefore, we'd need pi with an accuracy of
~10^63...
We have pi with an accuracy of 10^(10^12) which is
63 : 10^12 ~= 1: 1.59x10^11
Way more accuracy then we really need.
That's absolutely insane, but it is fun math.
Just some food for thought.
~ kjrose
Actually, to store a number this large it will have to be stored in IEEE 754 format.
In IEEE 754 a string of either 32 bits is divided into a sign bit, 8 or more bits for the exponent, and 23 or more bits for the mantissa.
You'll probably need a little more than 4119190837661 bits to tell you the truth.
Then again, who cares.
Only on slashdot....
My Blog: http://gozman.org
Nope. Any number with a recurring pattern is automatically rational, and pi is not.
This isn't too hard to see. For example, if pi repeated after 1.5 trillion digits, we could write its value (where [1.5tril] represents all those repeating digits:
Then multiply this number by 10^(1.5 trillion).
such that the repeating part starting with .14159 still follows the decimal point.
Then subtract the top equation from the bottom one, so the repeating part gets subtracted away.
Then just divide both sides by (10^(1.5 trillion) - 1) and you've written pi as a ratio of two integers.
my question is how exactly does it take multiple people 5 years to create a program to calculate pi. Granted, I have no experience in doing things like this - in fact I have no idea how to go about calculating pi to 30 digits nonetheless 1.3 trillion, but maybe 5 years seems excessively long.
This was from the cnn article.
With a few extra bits, you can make it easy to extract any digit of the number.
... ...
:)
Split the 1.24TB number into triplets, and store each triplet in 10 bits:
(leaving off the initial 3):
141 592 653
encode into 30 bits:
0010001101 1001010000 1010001101
Pack these together (and on and on), and you use only ~517 GB, but you can index to any digit by a simple division, shift, and decimal conversion.
(assuming you decided to put together a RAID array for the storage in the first place
- The Sigless Wonder
Has e been found to more decimal places? Pi and e are so related [Euler's equation, e^(i * pi) + 1 = 0], I wonder if precision in one will lead to precision in the other.