谁能给我解释一下C语言中编程计算圆周率的算法中Gauss公式和Stomer公式?谢谢啊!

[复制链接]
查看11 | 回复1 | 2009-7-20 13:42:37 | 显示全部楼层 |阅读模式
微机WindowsXP中Dev-cpp中的运算程序(30000位)(C++)#include #include #include #define N 30015using namespace std;void mult (int *a,int b,int *s){for (int i=N,c=0;i>=0;i--){int y=(*(a+i))*b+c;c=y/10;*(s+i)=y%10;}}void divi (int *a,int b,int *s){...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行