POV-Ray : Newsgroups : povray.binaries.images : The Pi Pool Balls : Re: The Pi Pool Balls Server Time
8 Aug 2024 06:20:51 EDT (-0400)
  Re: The Pi Pool Balls  
From: PM 2Ring
Date: 28 Nov 2005 00:45:00
Message: <web.438a98df663c0519ad93754b0@news.povray.org>
"PM 2Ring" <nomail@nomail> wrote:

> I'll work on converting Dik T. Winter's Pi program into POV SDL this
> weekend. It shouldn't take too long - I'll just modify my e calculator.
> Here's Dik's C source for this algorithm, which can actually do a little
> over 800 digits.
>
> int a=10000,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;
>      for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a,
>      f[b]=d%--g,d/=g--,--b;d*=b);}

> Do a Google Groups search on
>
>  Dik T. Winter Pi digits
>
> for more info.

Ok, I've now got a working POV version of the above obfuscated C program.
I'll post it tonight. Sorry about the delay, I got distracted... :)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.