- 博客(1)
- 收藏
- 关注
原创 python 实现复合梯形公式及复合辛普森公式
#被积函数 def fun(x): return x/(4+x*x) #复合梯形 def tx(a,b,n): h=(b-a)/n x=a s=fun(x)-fun(b) for k in range(1,n+1): x=x+h s=s+2*fun(x) result=(h/2)*s return res...
2019-11-03 15:21:00
10229
7
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人