Hi all,
I am doing a project in computational chemistry in which I have written some code to calculate electrical potential. The formula that I am using requires triple integrals over an infinite range of x, y, and z. The triple integrals are called as follows:
result, error = tplquad(function, (-1 * np.inf), np.inf, (-1 * np.inf), np.inf, (-1 * np.inf), np.inf, args=args)
Within the first of these function calls, another triple integral with the same formulation is called.
When this occurs, I get the following output:
Warning (from warnings module):
File "/home/justin/.local/lib/python2.7/site-packages/scipy/integrate/quadpack.py", line 385
warnings.warn(msg, IntegrationWarning)
IntegrationWarning: The maximum number of subdivisions (50) has been achieved.
If increasing the limit yields no improvement it is advised to analyze
the integrand in order to determine the difficulties. If the position of a
local difficulty can be determined (singularity, discontinuity) one will
probably gain from splitting up the interval and calling the integrator
on the subranges. Perhaps a special-purpose integrator should be used.