MathGroup Archive 2003

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

Search the Archive

Re: Speed Tips


> In general one should always use the form
> that requires the minimum work for the kernel.  So for example:
>
> Don't use   Table[expr,{i,imax}]  when  Table[expr,{imax}]  will work.
> Don't use   Do[expr,{i,imax}]      when  Do[expr,{imax}]  will work.


I think the two iterator specifications {i,imax} and {imax} are two diferent
things, are they not?

For example,. Table[ Random[],{10}] versus Table[ Random[] + i,{i,10}]


Ted, what were you thinking?


Borut




  • Prev by Date: signal detector question
  • Next by Date: Domain of Sin[ArcSin[x]] ?
  • Previous by thread: Speed Tips
  • Next by thread: Mathematica Evaluation Process