问题描述
def f(x,y,ro):
return x*y*ro
def bounds_y():
return [0,0.5]
def bounds_x(y):
return [0,1-2*y]
scipy.integrate.nquad(f,[bounds_x,bounds_y,[0.5] ],args= [0.5])
没有args,代码就可以工作。但是当我添加args时,出现以下错误
bounds_y()接受0个位置参数,但给出了1个
为什么会这样以及如何解决?
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)