MathGroup Archive 2008

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

Search the Archive

Re: Instructions in for

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