fixed_quad(func, a, b, args=(), n=5)
A Python function or method to integrate (must accept vector inputs). If integrating a vector-valued function, the returned array must have shape (..., len(x))
.
Lower limit of integration.
Upper limit of integration.
Extra arguments to pass to function, if any.
Order of quadrature integration. Default is 5.
Gaussian quadrature approximation to the integral
Statically returned value of None
Compute a definite integral using fixed-order Gaussian quadrature.
cumulative_trapezoid
dblquad
ode
odeint
quad
quadrature
romb
romberg
simpson
tplquad
from scipy import integrate
import numpy as np
f = lambda x: x**8
integrate.fixed_quad(f, 0.0, 1.0, n=4)
integrate.fixed_quad(f, 0.0, 1.0, n=5)
print(1/9.0) # analytical result
integrate.fixed_quad(np.cos, 0.0, np.pi/2, n=4)
integrate.fixed_quad(np.cos, 0.0, np.pi/2, n=5)
np.sin(np.pi/2)-np.sin(0) # analytical result
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.integrate._quadrature:romb
scipy.integrate._quadpack_py:quad
scipy.integrate._quadrature:cumulative_trapezoid
scipy.integrate._quadpack_py:dblquad
scipy.integrate._quadrature:simpson
scipy.integrate._quadpack_py:tplquad
scipy.integrate._quadpack_py:nquad
scipy.integrate._quadrature:romberg
scipy.integrate._quadrature:quadrature
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