Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6417
| From | Ray Koopman <koopman@sfu.ca> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: dynamic nested loops |
| Date | 2011-11-13 09:43 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j9o3ff$t97$1@smc.vnet.net> (permalink) |
| References | <j9irsq$8g5$1@smc.vnet.net> |
On Nov 11, 2:03 am, Ron <rag...@verizon.net> wrote:
> 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.
If you don't know at the start how deep the nest will be, how are
you constructing the list {{i,imin,imax},{j, jmin, jmax}, ...{}} ?
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
dynamic nested loops Ron <ragove@verizon.net> - 2011-11-11 10:03 +0000 Re: dynamic nested loops Peter Pein <petsie@dordos.net> - 2011-11-12 12:44 +0000 Re: dynamic nested loops Ray Koopman <koopman@sfu.ca> - 2011-11-13 09:43 +0000
csiph-web