SciPy integration misunderstanding
Today I needed to compute an integral similar to this: I used the following SciPy code to compute the integral: from scipy.integrate import quad def f(x): return 0.01*x**-3 integral, error = quad(f, 1000, sp.inf, epsrel = 1e-6) print integral, error My intention was to compute the integral to 6 significant figures. (epsrel is a shortened
John D. Cook | Applied Mathematics Consulting