## A Much Bigger Piece Of Pi 729 729

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! "
## I dunno about you, but... (Score:5, Interesting)

## How? (Score:2, Interesting)

## math question about pi (Score:3, Interesting)

## Signature of God? (Score:5, Interesting)

In the book version of

Contactby 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

piande.The main character finds one of the signatures at the end of the book: if calculating digits of

piin 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 definingpi, in the digits ofpiitself. 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?

## How To Calculate Pi (Score:3, Interesting)

(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.

## Re:Well ... what is it? (Score:2, Interesting)

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

## Re:math question about pi (Score:2, Interesting)

No - pi is irrationalOkay, I've heard this many times, and I don't doubt it's true. But are there any simple elegant proofs of this (like the one for proving that the square root of 2 is irrational), or are the proofs very involved, or are there no proofs at all except "well, nobody has found the end yet"?

## Re:Signature of God? (Score:0, Interesting)

after a few million or billion places, a 500x500 digit span is almost entirely zerosFirst off that is so stupid because it is totally impossible. How can you be doing the long division and get zero for every digit (with an occasional 1). Makes no sense. BAH!!

## No, pi is irrational (Score:5, Interesting)

Pi is represented usually by a fraction or relatively simple equation, it's just the division that makes the number go on for ever.Nope. If pi was rational (a fraction), it wouldn't go on for ever without repeating. (reference [wolfram.com])

In fact pi is irrational, i.e. there are no integers p, q such that pi = p / q. (proof [clemson.edu])

You can

approximatepi as a fraction, which is what projects like this do. (pi is approximately equal to 31/10, or 314/100, or 31416/1000, or## Re:How? (Score:1, Interesting)

echo "scale=500;4*a(1);"|bc -l

in a shell, where 500 is the number of decimals you wish.

## Re:math question about pi (Score:2, Interesting)

## Balancing costs and pure science (Score:2, Interesting)

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.

## Re:Well ... what is it? (Score:3, Interesting)

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?

## Re:Well ... what is it? (Score:2, Interesting)

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.

## Why doesn't math deal with Reality well? (Score:2, Interesting)

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?

## Re:PiHex (Score:2, Interesting)

Calculating the contiguous set of digits requires massive inter-node communications, as every part of the system has to know about every other part of the system. (Huge FFTs, which can be done in chunks, but after every step you need to recollate all the data. I 'simplify', of course)

The MBBP algorithm can be chopped up into small chunks and assembled centrally, and therefore distributes very well.

Colin Percival is 'on' slashdot, I'm sure he can provide more details (he was the mastermind behind the PiHex project).

THL.

## For comparison... (Score:5, Interesting)

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 [nasa.gov]

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.

## Re:Well ... what is it? (Score:3, Interesting)

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

## Re:One simple question (Score:3, Interesting)

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.

## 5 years (Score:2, Interesting)

This was from the cnn article [cnn.com].

## Re:Signature of God? (Score:4, Interesting)

Say we get a trillion digit sequence. Chances are that if you look long and hard enough, widening your parameters for what's acceptable enough, you will find something. Say you accept not just a perfect (according to some pixellization algorightm) circle exactly filling a 500x500 square in base eleven, but a pretty good approximation of any geometrical figure in any base up to some base and with an image size of anything from 32x32 up to those 500x500 - you suddenly have not just one chance per position in the sequence, but millions. That "Bible Code" scam worked exactly the same way - cast your net wide enough and you can't fail to find something.

Have fun.

## Re:Well ... what is it? (Score:3, Interesting)

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

## Re:if you want the circumference of the universe.. (Score:3, Interesting)

## Re:Signature of God? (Score:1, Interesting)

Consider of what a probability would be to find such a pattern (250000 specific characters!!!) after just a few billion places in Pi. If anything can be close to zero, this is.

Another problem would be why it is 500 by 500? If these guys love base 11 so much, I'd expect it to be 121x121 or something.

## What about e? (Score:2, Interesting)

## Re:Signature of God? (Score:2, Interesting)

Well, it seems pi is normal, which means any finite sequence appears somewhere along the expansion of the number. So trivially, that image of a circle is in there somewhere, as is an image of a triangle, the source to Linux 4.0, an image of Bush playing with G.I. Joe dolls on his desk and so on.Exactly. A friend of mine thought he had come up with an ingenious compression scheme using this. Instead of storing the actual numbers in a file, store the position where that number can be found inside pi!

This sounded a little bit too good to be true though, I supected that to find any number in pi you would sometimes have to scan quite far in the range of endless decimals. And I was right, often the position where the string could be found was a higher number than the number itself and in the end you're not compressing anything at all... :)

Interesting idea though...