how to generate pi in c

Marko Vojinovic vvmarko at gmail.com
Wed Nov 10 03:00:45 UTC 2010


On Wednesday, November 10, 2010 00:27:55 Bill Davidsen wrote:
> Arthur Bela wrote:
> > Does anyone has a "generate-pi.c" source code?
> 
> Someone recently came up with an algorithm which would calculate arbitrary
> bits of the value of PI, as in binary digits. So you could calculate the
> trillionth place 0 or 1 without all the intervening bits. Should you find
> a use for it, the article was in several digests, so I assume you can look
> it up. I didn't.

One can find that already on wikipedia,

  http://en.wikipedia.org/wiki/Pi

For example, the quadrillionth bit of pi is zero, as it turns out apparently. 
;-)

Best, :-)
Marko



More information about the users mailing list