MathGroup Archive 2002

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

Search the Archive

Re: Beginners Question - Series list problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35661] Re: [mg35636] Beginners Question - Series list problem
  • From: BobHanlon at aol.com
  • Date: Thu, 25 Jul 2002 04:45:46 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 7/24/02 2:34:21 AM, bazcor at tiscali.co.uk writes:

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

Look at the function NestList

NestList[f, iV, 3]

{iV, f[iV], f[f[iV]], f[f[f[iV]]]}


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Question about Replace
  • Next by Date: Re: Re: Slow iteration in a functional program
  • Previous by thread: Re: Beginners Question - Series list problem
  • Next by thread: Re: Beginners Question - Series list problem