用梯形法计算定积分 的近似值.(精确到0.0001)
问题描述:
用梯形法计算定积分 的近似值.(精确到0.0001)
答
//#include #include #include main(){int i,j,n;double a=0,b=1;double min=1e-4;double function(double x);double trape_integral_n(double a,double b,int *n,double min);printf("y=%.11lf\n",trape_integral_n...