Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Time for an integration

  • To: mathgroup at
  • Subject: [mg100920] Re: Time for an integration
  • From: David Bailey <dave at>
  • Date: Thu, 18 Jun 2009 04:53:28 -0400 (EDT)
  • References: <h19i35$p1a$>

Lena wrote:
> Hello ! 
> I have an integral to perform 4096 times: it is a 3dimensionnal integral over a matrix of 4096.4096 points.
> It takes many hours and I still does not have the result. I made a loop with NIntegrate.
> Is it possible that an integration loop in mathematica takes so long ? Is there any ways to improve it ?
> Thank you
> Lena
Well you are attempting 16 million numerical integrations, which is not 

A good start might be to add the line:


to your loop, where i and j are your loop variables. This will give you 
a better idea of how fast it is working, and how long it might take.

David Bailey

  • Prev by Date: Re: how to _paste_ hyperlink into notebook
  • Next by Date: Re: Hypergeometric2F1 gives wrong complex infinities
  • Previous by thread: Re: Time for an integration
  • Next by thread: Re: Time for an integration