from scipy import integrate
import numpy as np
def f(x,z):
return (3*x**2 + 3*z**2)**0.5
def limits_y(x,z):
return [(2*x**2+2*z**2),8]
def limits_z():
return [0,2*np.pi]
def limits_x():
return [0,2]
integrate.nquad(f,[limits_y,limits_z,limits_x])
这是我的程序……写完之后显示错误:
" limits_z takes 0 positional arguments but 1 was given "
牧羊人nacy
PIPIONE
相关分类