MathGroup Archive 2008

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

Search the Archive

Re: Instructions in for

  • To: mathgroup at
  • Subject: [mg89403] Re: [mg89371] Instructions in for
  • From: "W_Craig Carter" <ccarter at>
  • Date: Sun, 8 Jun 2008 02:34:02 -0400 (EDT)
  • References: <>

Hello Alejandra,

On Sat, Jun 7, 2008 at 2:59 AM, Alejandra Lozada <alozih at>
> QUESTION: how to introduce many instructions in for?
Here is an example that shows the use of semicolons.

For[ i=1, i<20, i++,
 d= FactorInteger[i];

Generally, you will get more flexible and faster code if you use Map,
Table, and Through type constructs rather than For.

W. Craig Carter

  • Prev by Date: Re: ContourPlot3D appearance
  • Next by Date: Re: Major problem with
  • Previous by thread: Instructions in for
  • Next by thread: Re: Instructions in for