摘要: 无意中发现的一条求sin公式,总结之。测试平台:Win7 64b + VS2012克劳林公式:算法描述: 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 5 inline int factorial(int x) 6 { 7 if ( x==1 ) 8 return 1; 9 return factorial(x-1)*x;10 }11 12 inline double square (double x, int n)13 {14 double ret=1.0;15 1... 阅读全文
posted @ 2013-06-14 19:16 左懒 阅读(1600) 评论(0) 推荐(0) 编辑