MathGroup Archive 2011

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

Search the Archive

Local Variables in Do[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116818] Local Variables in Do[]
  • From: adamimos <ashai at caltech.edu>
  • Date: Tue, 1 Mar 2011 05:23:00 -0500 (EST)

I hate to have such a newbie question, but I'm new to programming in Mathematica. I have nested loops, and I'd like to change a global variable inside of the loop. It seems that Mathematica makes all variables defined inside of Do functions local, is this true?


  • Prev by Date: Select from Tuplet using logical expression
  • Next by Date: Sorting a list of symbols
  • Previous by thread: Re: Select from Tuplet using logical expression
  • Next by thread: Re: Local Variables in Do[]