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."