一个极度牛X的计算pi的C程序

#include<stdio.h>
#include
<math.h>
long 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); 
}  

 

 


posted on 2010-08-18 18:11 Dark 阅读(91) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航:   博客园   博客园最新博文   博问   管理


<2026年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿

文章档案

搜索

最新评论