MathGroup Archive 2000

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

Search the Archive

Re: Follow-up on Do[] Question

  • To: mathgroup at
  • Subject: [mg23358] Re: Follow-up on Do[] Question
  • From: Enrico Righes <righes at>
  • Date: Thu, 4 May 2000 02:59:25 -0400 (EDT)
  • References: <8elmvq$>
  • Sender: owner-wri-mathgroup at

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

  • 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