Re: Beginners Question - Series list problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg35676] Re: [mg35636] Beginners Question - Series list problem*From*: "Julio Vera" <jvera at adinet.com.uy>*Date*: Thu, 25 Jul 2002 04:46:15 -0400 (EDT)*References*: <200207240605.CAA28634@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Barry, I think you are looking for the command NestList. A function ff is defined, for example ff[a_]:=2a The first element is defined In[] fir=1 Out[] 1 Then ff is applied a number of times to the first and following elements In[] lst=NestList[ff,fir,10] Out[] {1,2,4,8,16,32,64,128,256,512,1024} Julio ----- Original Message ----- From: "Baz" <bazcor at tiscali.co.uk> To: mathgroup at smc.vnet.net Subject: [mg35676] [mg35636] Beginners Question - Series list problem > I am trying to generate a list of numbers where the number being > calculated is dependant on the previous list member. > > What I (think I) need is a function, like > SeriesTable[expr,{InitialValue,imax}] where IntitialValue will be the > first value in the list and expr will be evaluated on this value to > form the second value and so on Imax times. > > > My attempts to write such a function have failed miserably. Please > help ... Barry >

**References**:**Beginners Question - Series list problem***From:*Baz <bazcor@tiscali.co.uk>