Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: Local Variables in Do[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132041] Re: Local Variables in Do[]
  • From: morberticus at gmail.com
  • Date: Sat, 23 Nov 2013 02:55:46 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <ikl2va$sps$1@smc.vnet.net>

On Wednesday, March 2, 2011 9:34:34 AM UTC, DrMajorBob wrote:
> No; not true.
> 
> Bobby
> 
> On Tue, 01 Mar 2011 04:23:00 -0600, adamimos <ashai at caltech.edu> wrote:
> 
> > 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?
> >
> 
> 
> -- 
> DrMajorBob at yahoo.com

It is true if you forget the semicolon.



  • Prev by Date: Solving complicated matrix equations
  • Next by Date: Re: Help needed
  • Previous by thread: Re: Solving complicated matrix equations
  • Next by thread: Re: NonlinearModelFit and Complex Data