Compute a definite integral using fixed-order Gaussian quadrature.
Description:
Integrate func from a to b using Gaussian quadrature of order n.
Inputs:
- func – a Python function or method to integrate
- (must accept vector inputs)
a – lower limit of integration b – upper limit of integration args – extra arguments to pass to function. n – order of quadrature integration.
Outputs: (val, None)
val – Gaussian quadrature approximation to the integral.
See also:
quad - adaptive quadrature using QUADPACK dblquad, tplquad - double and triple integrals romberg - adaptive Romberg quadrature quadrature - adaptive Gaussian quadrature romb, simps, trapz - integrators for sampled data cumtrapz - cumulative integration for sampled data ode, odeint - ODE integrators