Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Speed Tips

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39608] Re: Speed Tips
  • From: "Borut L" <gollum at email.si>
  • Date: Wed, 26 Feb 2003 02:41:28 -0500 (EST)
  • References: <b3f8c8$d7i$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> 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