|   | #2东海ECS2023-04-19 19:22 | 
    from scipy import integrate
def f(x,y,z):
    return x
def bounds_x():
    return [0,1]
def bounds_y(x):
    return [0,(1-x)/2]
def bounds_z(x,y):
    return [0,(1-x-2*y)]
v,err=integrate.nquad(f,[bounds_z,bounds_y,bounds_x])
print("f函数的三重积分是:{:.4}".format(v)) 
输出结果是0.02604
实际结果是0.02083
   这是出了什么问题,难道是nquad()函数的误差控制问题?  

