Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Local Variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20425] Re: Local Variables
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 26 Oct 1999 00:33:09 -0400
  • Organization: Universitaet Leipzig
  • References: <7u7tvt$p6r@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Eric,

the double loop:

For[i = 1, i < 4, i++,
  For[j = i + 1, j < 4, j++, Print[i, " ", j]]]

does the expected. Can you describe your problem 
in more detail ?

Jens

Eric Spahr wrote:
> 
> I am most confused... Nested Sums seem to be able to
> refer to their
> predecessors' iterators as in:
> " Sum[DoSomething, {i, 1, whatever},{j,
> j=i+1,someotherwhatever}
>      ]"... but:
> "For[i = 1, i < whatever, i++,
>         For[j = 1, j < someotherwhatever, j++,
>           Do Something[[i]][[j]]
>            ]
>    ]" doesn't.
> What am I missing?
> Thanks in advance.


  • Prev by Date: Version 3.0 unstable?
  • Next by Date: Re: Font problems running remotely
  • Previous by thread: Local Variables
  • Next by thread: Mathematica help