The area 积分
摘要:
思路就是用顶点式求抛物线的方程,然后再再求出其原函数,积分减去梯形面积即可 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <math.h> 4 5 double a, b, c, x1, x2, x3, p1, p2, p3; 6 7 double fun (double x ) 8 { 9 return (1.0 / 3 ) * a * ( x - x1 ) * (x - x1 ) * (x - x1 ) + p1 * x; 10 }11 12 int main( )13 {14 int T, 阅读全文
posted @ 2011-07-20 10:29 more think, more gains 阅读(237) 评论(0) 推荐(0)