现在我可以从scipy.integrate
x y=f(x) 0.1 10.5 1.2 2.0 3.7 11.0 7.0 4.0
from scipy.integrate import simps I = simps(y,x)
对于数值集成,一旦我们具有x和函数
x
的值,就可以遵循上述过程。
一个人也可以使用the的梯形规则: y=f(x)
y=f(x)