I usually use scipy to do integration by python. This is my code,
from scipy import integrate
def f(x, y, z):`
return [x**2 + y**2 +3*z, x + y]
a = integrate.quad(f, 0, 1, (2,2))
print(a)
I want to do the same integration to both of the elements simultaneously, something like map. After I executed it, it shows:
quadpack.error: Supplied function does not return a valid float.