Search Members Help

» Welcome Guest
[ Log In :: Register ]

 

[ Track This Topic :: Email This Topic :: Print this topic ]

reply to topic new topic new poll
Topic: Calculating Pi< Next Oldest | Next Newest >
 Post Number: 1
demonk Search for posts by this member.
The other white meat
Avatar



Group: Members
Posts: 800
Joined: Aug. 2000
PostIcon Posted on: Jul. 26 2001,21:06  Skip to the next post in this topic. Ignore posts   QUOTE

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

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 2
Dark Knight Bob Search for posts by this member.
qunt
Avatar



Group: Members
Posts: 2180
Joined: Sep. 2001
PostIcon Posted on: Jul. 26 2001,23:48 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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

Offline
Top of Page Profile Contact Info 
 Post Number: 3
CatKnight Search for posts by this member.
Jedi Republican
Avatar



Group: Members
Posts: 3807
Joined: Dec. 2000
PostIcon Posted on: Jul. 29 2001,14:00 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

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.
Offline
Top of Page Profile Contact Info WEB 
 Post Number: 4
demonk Search for posts by this member.
The other white meat
Avatar



Group: Members
Posts: 800
Joined: Aug. 2000
PostIcon Posted on: Jul. 29 2001,16:38 Skip to the previous post in this topic.  Ignore posts   QUOTE

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.

Offline
Top of Page Profile Contact Info WEB 
3 replies since Jul. 26 2001,21:06 < Next Oldest | Next Newest >

[ Track This Topic :: Email This Topic :: Print this topic ]


 
reply to topic new topic new poll

» Quick Reply Calculating Pi
iB Code Buttons
You are posting as:

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code