how to generate pi in c

fred smith fredex at fcshome.stoneham.ma.us
Sat Nov 6 17:11:19 UTC 2010


On Sat, Nov 06, 2010 at 12:18:45PM +0000, Marko Vojinovic wrote:
> On Sat, Nov 6, 2010 at 8:43 AM, Mogens Kjaer <mk at lemo.dk> wrote:
> >> http://www.kurims.kyoto-u.ac.jp/~ooura/pi_fft.html
> >>
> >> You'll need RAM to get many digits.
> >
> > 1.6 G decimals in 20 hours on a machine with 16G RAM, running
> > x86_64 Fedora 12.
> 
> Really, I'm curious, is there any real-world problem where anyone
> would actually *need* pi to a G decimal places? I mean, are these kind
> of computations actually useful for someone, or is it just a matter of
> "we have the power to do it, so let's do it" thing? Other than entry
> into the Guinness book of records, that is?
> 
> Or maybe there are still people who believe pi is rational rather than
> transcendent, and look for a cyclic repeat pattern in the decimals?
> ;-)

Or maybe they've read Carl Sagan's novel "Contact" and are hoping
he was right...

-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
                    The Lord detests the way of the wicked 
                  but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------


More information about the users mailing list