摘要: 计算几何+数值计算的题目;要用到辛普森积分,没有学过~~~参考学习了 acm_Naruto大神的代码!代码: 1 #include 2 #include 3 #include 4 #define maxn 20005 5 using namespace std; 6 int n,a,b,c,l,r,x[maxn],y[maxn]; 7 double sqr(double x) 8 { 9 return x*x;10 }11 double len(double x)12 {13 double t,tt;14 t=(sqrt((b+2*a*x)*(b+2*a*x)+1)+2... 阅读全文
posted @ 2013-09-24 00:08 Yours1103 阅读(362) 评论(0) 推荐(0) 编辑