On Fri, Nov 5, 2010 at 9:40 AM, Arthur Bela <jozsi.avadkan@xxxxxxxxx> wrote: > Does anyone has a "generate-pi.c" source code? a[52514],b,c=52514,d,e,f=1e4,g,h;main(){for(;b=c-=14;h=printf("%04d", e+d/f))for(e=d%=f;g=--b*2;d/=g)d=d*b+f*(h?a[b]:f/5),a[b]=d%--g;} ...though that's only good for the first 15,000 digits. You probably need to be more specific about what you're looking for; the literature on generating digits of pi is pretty extensive. Cf. http://www.comlab.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines