MathGroup Archive 2000

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

Search the Archive

Re: Follow-up on Do[] Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23358] Re: Follow-up on Do[] Question
  • From: Enrico Righes <righes at stud.uni-hannover.de>
  • Date: Thu, 4 May 2000 02:59:25 -0400 (EDT)
  • References: <8elmvq$sii@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

com3 at ix.netcom*NOSPAM*.com wrote:
> 
> Hello,
> 
... 
> Am I missing something or is the Do[] construct limited to processing
> only a single command ?
> 
> The online help gives the following help on Do.
> Do[expr, {imax}] evaluates expr imax times.
> 
> But what if I have several expressions that I would like evaluated
> imax times ?
...

Hello Steven!

You must separate the expressions with a semicolon ';'. This is also
valid for evaluating expressions outside a DO[] construct:

a = 84; a /= 2; a

Hope that helps
Enrico


  • Prev by Date: Re: Follow-up on Do[] Question
  • Next by Date: RE: Could we build matrix with codition instruction?
  • Previous by thread: Re: Follow-up on Do[] Question
  • Next by thread: RE: Follow-up on Do[] Question