scipy
The integrate
module provides centralized numerical integration algorithms, including Ordinary Differential ODE
numerical integration.
1. Points
(1) numerical integration function:
scipy.integrate.quad(func, a, b, args=(), full_output=0, epsabs=1.49e-08, epsrel=1.49e-08, limit=50, points=None, weight=None, wvar=None, wopts=None, maxp1=50, limlst=50)
parameter:
func
: APython
function function object that represents the integral. If it has a plurality of parameters, only the integral on the first parameter. Other parameters, byargs
providinga
: Integration lower. With-numpy.inf
representatives negative infinityb
: Integral limit. Withnumpy.inf
representatives of positive infinityargs
: Additional parameters passed tofunc
full_output
: If non-zero, then returned by the dictionary for more information- Other parameters to control the details of the integration. Refer to the official manual
return value:
y
: A floating-point scalar value represents the integration resultabserr
: A floating point number with absolute error estimateinfodict
: A dictionary containing additional information