tplquad(func, a, b, gfun, hfun, qfun, rfun, args=(), epsabs=1.49e-08, epsrel=1.49e-08)
Return the triple integral of func(z, y, x)
from x = a..b
, y = gfun(x)..hfun(x)
, and z = qfun(x,y)..rfun(x,y)
.
A Python function or method of at least three variables in the order (z, y, x).
The lower boundary curve in y which is a function taking a single floating point argument (x) and returning a floating point result or a float indicating a constant boundary curve.
The upper boundary curve in y (same requirements as :None:None:`gfun`
).
The lower boundary surface in z. It must be a function that takes two floats in the order (x, y) and returns a float or a float indicating a constant boundary surface.
The upper boundary surface in z. (Same requirements as :None:None:`qfun`
.)
Extra arguments to pass to :None:None:`func`
.
Absolute tolerance passed directly to the innermost 1-D quadrature integration. Default is 1.49e-8.
Relative tolerance of the innermost 1-D integrals. Default is 1.49e-8.
Compute a triple (definite) integral.
dblquad
Double integrals
fixed_quad
Fixed-order Gaussian quadrature
nquad
N-dimensional integrals
ode
ODE integrators
odeint
ODE integrators
quad
Adaptive quadrature using QUADPACK
quadrature
Adaptive Gaussian quadrature
romb
Integrators for sampled data
scipy.special
For coefficients and roots of orthogonal polynomials
simpson
Integrators for sampled data
Compute the triple integral of x * y * z
, over x
ranging from 1 to 2, y
ranging from 2 to 3, z
ranging from 0 to 1.
>>> from scipy import integrateSee :
... f = lambda z, y, x: x*y*z
... integrate.tplquad(f, 1, 2, lambda x: 2, lambda x: 3,
... lambda x, y: 0, lambda x, y: 1) (1.8750000000000002, 3.324644794257407e-14)
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.integrate._quadrature.simpson
scipy.integrate._quadpack_py.dblquad
scipy.integrate._quadrature.quadrature
scipy.integrate._quadrature.romb
scipy.integrate._quadrature.fixed_quad
scipy.integrate._quadrature.cumulative_trapezoid
scipy.integrate._quadpack_py.quad
scipy.integrate._quadpack_py.nquad
scipy.integrate._quadrature.romberg
scipy.integrate._quadpack_py.tplquad
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them