摘要:pi = 3.1415926.....下面用c 语言来求解PI现有公式(pi*pi)/6 = 1 + 1/(2*2) + 1/(3*3) + ... + 1/(n*n);#include double CalculatePi(unsign long n) {double s = 0.0; unsig... 阅读全文
posted @ 2015-10-22 22:38 sndnvaps 阅读 (97) 评论 (0) 编辑