Forum: Geek Forum
Topic: Calculating Pi
started by: demonk

Posted by demonk on Jul. 26 2001,21:06

This was on /. today, and it got my interest. I've written a perl program that does this exact algorithim. But the webpage I saw this on says that this is to calculate the Nth hex digit of Pi. How in the world do I take what this algorithim spits outs and turn it into something interesting? If I write it directly to a file, I find that the result is accurret only to the 42nd place. Any help and/or ideas would be great.

------------------
Oregonians -
Says they are Independants, registers Democrat, and votes Republican.

This message has been edited by demonk on July 27, 2001 at 04:10 PM


Posted by Dark Knight Bob on Jul. 26 2001,23:48
iono much about perl mabye the progam doesnt have the memory to handle it?

try something like fortran or maple mabye they'd might work better. they're more maths based so u might be able to set the indicie limit to infinity on them

------------------
Is it just me or does WWF look 10 times more entertaining when playing the benny hill music in the background.

This message has been edited by Dark Knight Bob on July 27, 2001 at 06:49 PM


Posted by CatKnight on Jul. 29 2001,14:00
I tried plugging that in MATLAB at work just to kill some time and a few trillion CPU cycles on the now 17 node supercomputer (it absorbed my workstaion as another node!). I couldn't get it to output in decimal. I don't know if it's even possible. I think that's the drawback of that formula.
Posted by demonk on Jul. 29 2001,16:38
If I could get the program to output it in HEX then I would be fine. But right now it does everything is decimal, which is why the output isn't valid. I'm probably just going to have to do this in C and make some of my own conversion functions.

------------------
Oregonians -
Says they are Independants, registers Democrat, and votes Republican.


Powered by Ikonboard 3.1.4 © 2006 Ikonboard