MathGroup Archive 1997

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

Search the Archive

Re: programs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9670] Re: programs
  • From: "Xah" <xah at best.com>
  • Date: Fri, 21 Nov 1997 01:31:07 -0500
  • Organization: smtp.best.com
  • Sender: owner-wri-mathgroup at wolfram.com

In article <643cni$538 at smc.vnet.net>, Christian Zemlin
<chr at satchmo.physik.TU-Berlin.DE> wrote:

>I would like to execute the same series of commands at several points in
>th= e
>evaluation of a notebook, and I need a shortcut for it. ...

The command Do is what you needed. For example,

Do[Plot[Sin[x],{x,0,Pi}],{5}];

 Xah, xah at best.com
 http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html
 Mountain View, CA, USA
 "Yes. DyLan is the best language around, and Java sucks."


  • Prev by Date: Re: Named Commands list?
  • Next by Date: Re: ReplacePart
  • Previous by thread: programs
  • Next by thread: Prolate spheroidal function...