scipy.integrate.fixed_quad(func, a, b, args=(), n=5)

Compute a definite integral using fixed-order Gaussian quadrature.


Integrate func from a to b using Gaussian quadrature of order n.


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

Previous topic


Next topic


This Page

Quick search