---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-5-e0406ea98677> in <module>()
25
26
---> 27 I = tplquad(secondIntegrals, lowL(0), upL(0), lowL, upL, lowL, upL)
28
29
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in tplquad(func, a, b, gfun, hfun, qfun, rfun, args, epsabs, epsrel)
485
486 """
--> 487 return dblquad(_infunc2,a,b,gfun,hfun,(func,qfun,rfun,args),epsabs=epsabs,epsrel=epsrel)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in dblquad(func, a, b, gfun, hfun, args, epsabs, epsrel)
423
424 """
--> 425 return quad(_infunc,a,b,(func,gfun,hfun,args),epsabs=epsabs,epsrel=epsrel)
426
427 def _infunc2(y,x,func,qfun,rfun,more_args):
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _infunc(x, func, gfun, hfun, more_args)
373 b = hfun(x)
374 myargs = (x,) + more_args
--> 375 return quad(func,a,b,args=myargs)[0]
376
377 def dblquad(func, a, b, gfun, hfun, args=(), epsabs=1.49e-8, epsrel=1.49e-8):
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _infunc2(y, x, func, qfun, rfun, more_args)
429 b2 = rfun(x,y)
430 myargs = (y,x) + more_args
--> 431 return quad(func,a2,b2,args=myargs)[0]
432
433 def tplquad(func, a, b, gfun, hfun, qfun, rfun, args=(), epsabs=1.49e-8,
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
<ipython-input-4-23414140d954> in secondIntegrals(x, y, z)
9
10 def secondIntegrals(x, y, z):
---> 11 I = tplquad(integrand, lowL(0), upL(0), lowL, upL, lowL, upL, args=(x, y, z))
12 return I[0]
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in tplquad(func, a, b, gfun, hfun, qfun, rfun, args, epsabs, epsrel)
485
486 """
--> 487 return dblquad(_infunc2,a,b,gfun,hfun,(func,qfun,rfun,args),epsabs=epsabs,epsrel=epsrel)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in dblquad(func, a, b, gfun, hfun, args, epsabs, epsrel)
423
424 """
--> 425 return quad(_infunc,a,b,(func,gfun,hfun,args),epsabs=epsabs,epsrel=epsrel)
426
427 def _infunc2(y,x,func,qfun,rfun,more_args):
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _infunc(x, func, gfun, hfun, more_args)
373 b = hfun(x)
374 myargs = (x,) + more_args
--> 375 return quad(func,a,b,args=myargs)[0]
376
377 def dblquad(func, a, b, gfun, hfun, args=(), epsabs=1.49e-8, epsrel=1.49e-8):
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _infunc2(y, x, func, qfun, rfun, more_args)
429 b2 = rfun(x,y)
430 myargs = (y,x) + more_args
--> 431 return quad(func,a2,b2,args=myargs)[0]
432
433 def tplquad(func, a, b, gfun, hfun, qfun, rfun, args=(), epsabs=1.49e-8,
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in quad(func, a, b, args, full_output, epsabs, epsrel, limit, points, weight, wvar, wopts, maxp1, limlst)
245 if type(args) != type(()): args = (args,)
246 if (weight is None):
--> 247 retval = _quad(func,a,b,args,full_output,epsabs,epsrel,limit,points)
248 else:
249 retval = _quad_weight(func,a,b,args,full_output,epsabs,epsrel,limlst,limit,maxp1,weight,wvar,wopts)
/usr/lib/python2.7/dist-packages/scipy/integrate/quadpack.pyc in _quad(func, a, b, args, full_output, epsabs, epsrel, limit, points)
310 if points is None:
311 if infbounds == 0:
--> 312 return _quadpack._qagse(func,a,b,args,full_output,epsabs,epsrel,limit)
313 else:
314 return _quadpack._qagie(func,bound,infbounds,args,full_output,epsabs,epsrel,limit)
<ipython-input-4-23414140d954> in integrand(x1, y1, z1, x2, y2, z2)
6
7 def integrand(x1,y1,z1,x2,y2,z2):
----> 8 return Ga(x1,y1,z1)*Gb(x1,y1,z1)*Gc(x2,y2,z2)*Gd(x2,y2,z2)/sqrt((x1-x2)**2 + (y1-y2)**2 + (z1-z2)**2)
9
10 def secondIntegrals(x, y, z):
<ipython-input-2-98dc4a54ccc4> in __call__(self, x, y, z)
11
12 coff = (x-R[0])**i * (y-R[1])**j * (z-R[2])**k
---> 13 Ra = (x-R[0])**2 + (y-R[1])**2 + (z-R[2])**2
14 expon = exp(-alpha*Ra)
15
KeyboardInterrupt:
-c:8: RuntimeWarning: divide by zero encountered in double_scalars