How to limit number of function calls in scipy.integrate.quad?
How to limit number of function calls in scipy.integrate.quad? Question: Scipy.integrate.quad() seems to make too many function calls in come cases. Here is a simple test to demonstrate: import numpy as np from scipy import integrate def intgnd(x): p = x + x**2 return p x0=-1 x1=1 epsrel=0.1 epsabs=0.1 I,err,info = integrate.quad(intgnd,x0,x1,full_output=1,epsabs=epsabs,epsrel=epsrel) print("{:.3f}, {:.3g}, {}, …