Compute a triple (definite) integral.
Return the triple integral of func3d(z, y,x) from x=a..b, y=gfun(x)..hfun(x), and z=qfun(x,y)..rfun(x,y)
- func3d – a Python function or method of at least three variables in the
- order (z, y, x).
(a,b) – the limits of integration in x: a < b gfun – the lower boundary curve in y which is a function taking a singlefloating point argument (x) and returning a floating point result: a lambda function can be useful here.
hfun – the upper boundary curve in y (same requirements as gfun). qfun – the lower boundary surface in z. It must be a function that takestwo floats in the order (x, y) and returns a float.
rfun – the upper boundary surface in z. (Same requirements as qfun.) args – extra arguments to pass to func3d. epsabs – absolute tolerance passed directly to the innermost 1-D quadratureintegration.
epsrel – relative tolerance of the innermost 1-D integrals.
Outputs: (y, abserr)
y – the resultant integral. abserr – an estimate of the error.