MathGroup Archive 2011

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

Search the Archive

dynamic nested loops


i need to perform nested sums such as Sum[f, {i,imin,imax},{j, jmin, jmax}, ...{}].  In each nest the new index is a function of the previous and the max values vary.  Also at the beginning I do not know how long a nest I need.  I can't come up with anything that works.  I could construct a list {{i,imin,imax},{j, jmin, jmax}, ...{}} but "Sum" doen't know what to do with the outside braces{...}.
ANy suggestions would be much appreciated.



  • Prev by Date: Mathematical Statistics with Mathematica - new 2011 edition
  • Next by Date: How can I protect an cdf document to avoid that the user open the
  • Previous by thread: Mathematical Statistics with Mathematica - new 2011 edition
  • Next by thread: Re: dynamic nested loops