Re: Help with Iteration.
- To: mathgroup at smc.vnet.net
- Subject: [mg8618] Re: [mg8610] Help with Iteration.
- From: Wouter Meeussen <w.meeussen.vdmcc at vandemoortele.be>
- Date: Fri, 12 Sep 1997 04:10:34 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Oops, better make that : Table[{x[i+1]=f[x[i],y[i]],y[i+1]=z[x[i],y[i]]} ,{i,5}] and go easy on the "{i,5}", it doubles each time in length, and 2^20 is about 1,000,000 as you know. wouter. >Date: Tue, 09 Sep 1997 15:13:33 >To: Alan Hunter <akh6n at virginia.edu> >From: Wouter Meeussen <w.meeussen.vdmcc at vandemoortele.be> To: mathgroup at smc.vnet.net >Subject: [mg8618] Re: [mg8610] Help with Iteration. > >maybe Table[ {x=f[x,y],y=z[x,y]} ,{20}] ? >or >maybe Table[Evaluate[{x=f[x,y],y=z[x,y]}] ,{20}] ? > > >wouter. > > >At 03:07 09.09.97 -0400, you wrote: >>This question might seem pretty basic, but I'm new to Mathematica. >>Thanks for all the responses I got from my last question. They were all >>very helpful. It is always interesting to see several different >>approaches to the same problem. I am having a little trouble >>translating a Do statement into a Table command. How would you write a >>statement like Do[Print[{x,y}]; x=f[x, y]; y=z[x, y], {20}] , but >>that would output to a table. ie the output would be in the form of >>{{a, a}, {b, b}, {c, c}, ...} and not just a series of XY pairs printed >>vertically. Thanks in advance for any insights you might provide. >> >>Alan Hunter <akh6n at virginia.edu> >>The University of Virginia >> >> >> >> > NV Vandemoortele Coordination Center Oils & Fats Applied Research Prins Albertlaan 79 Postbus 40 B-8870 Izegem (Belgium) Tel: +/32/51/33 21 11 Fax: +/32/51/33 21 75 vdmcc at vandemoortele.be