dynamic nested loops
- To: mathgroup at smc.vnet.net
- Subject: [mg122819] dynamic nested loops
- From: Ron <ragove at verizon.net>
- Date: Fri, 11 Nov 2011 04:56:10 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
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.
- Follow-Ups:
- Re: dynamic nested loops
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: dynamic nested loops
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: dynamic nested loops