Calculating integrals by Weddle's rule

前端 未结 0 1818
独厮守ぢ
独厮守ぢ 2020-12-22 12:36

Can someone tell me what is wrong with this formula?

def Weddle1(f, a, b, n): 
h = (b - a) / n
summa1 = 0
summa1 += ((3*h/10)*(f(a)+5*f(a+h)+f(a+2*h)+6*f(a+3*         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题