ToolPythonBeginner
Numerical integration with scipy.integrate: the area under a measured peak
- total, err = quad(shape, -np.inf, np.inf)
- inside, err = quad(shape, -k * fwhm, k * fwhm)
- value, err, info = quad(shape, -half, half, epsabs=tol, epsrel=tol, full_output=1)
- I, err, info = quad(lambda theta: 1 / np.sqrt(np.cos(theta) - np.cos(theta0)), 0, theta0, full_output=1)
- value, err = quad(f, -1, 1, points=pts)
- value, err = quad(lambda x: shape(x - peak), a, b)