quadrature(func, a, b, args=(), tol=1.49e-08, rtol=1.49e-08, maxiter=50, vec_func=True, miniter=1)
Integrate :None:None:`func`
from a
to b
using Gaussian quadrature with absolute tolerance :None:None:`tol`
.
A Python function or method to integrate.
Lower limit of integration.
Upper limit of integration.
Extra arguments to pass to function.
Iteration stops when error between last two iterates is less than :None:None:`tol`
OR the relative change is less than :None:None:`rtol`
.
Maximum order of Gaussian quadrature.
True or False if func handles arrays as arguments (is a "vector" function). Default is True.
Minimum order of Gaussian quadrature.
Gaussian quadrature approximation (within tolerance) to integral.
Difference between last two estimates of the integral.
Compute a definite integral using fixed-tolerance Gaussian quadrature.
cumulative_trapezoid
cumulative integration for sampled data
dblquad
double integrals
fixed_quad
fixed-order Gaussian quadrature
ode
ODE integrator
odeint
ODE integrator
quad
adaptive quadrature using QUADPACK
romb
integrator for sampled data
romberg
adaptive Romberg quadrature
simpson
integrator for sampled data
tplquad
triple integrals
>>> from scipy import integrate
... f = lambda x: x**8
... integrate.quadrature(f, 0.0, 1.0) (0.11111111111111106, 4.163336342344337e-17)
>>> print(1/9.0) # analytical result 0.1111111111111111
>>> integrate.quadrature(np.cos, 0.0, np.pi/2) (0.9999999999999536, 3.9611425250996035e-11)
>>> np.sin(np.pi/2)-np.sin(0) # analytical result 1.0See :
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._quadrature.vectorize1
scipy.integrate._quadpack_py.nquad
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