Re: iterative function query
- To: mathgroup@smc.vnet.net
- Subject: [mg10615] Re: [mg10579] iterative function query
- From: Wouter Meeussen <w.meeussen.vdmcc@vandemoortele.be>
- Date: Mon, 26 Jan 1998 04:42:45 -0500
that is what Nest[ ] is for : Nest[45+0.97 #&,45,5] or tax[x_]:=45+ 97/100 x Nest[tax,45,4] or Nest[tax,0,5] should do. >so that the following is generated: > >45 + 0.97(45+0.97(45+0.97(45+0.97(45)))) ---1----- - --2---- - ---3--- - ----4---- - -- check the help-file for NestList and FixedPoint. wouter. At 16:54 20.01.98 -0500, you wrote: >Content-Type: text/plain; charset="us-ascii" (text) Content-Description: >text > >Can someone explain the best way to code: > >starting at x=1 and going to x=5; >taxes[x_]:= 45 + 0.97(taxes[x+1])/; > >so that the following is generated: > >45 + 0.97(45+0.97(45+0.97(45+0.97(45)))) > >Thanks, > >Eric Walters >ewalters@bio.fsu.edu</HTML> >Content-Type: text/html; charset="us-ascii" From: Eric Walters To: mathgroup@smc.vnet.net ><ewalters@bio.fsu.edu> To: mathgroup@smc.vnet.net >Subject: [mg10615] [mg10579] iterative function query >Organization: Florida State University Mime-Version: 1.0 >Content-Length: 280 > ><HTML> >Can someone explain the best way to code: > ><P>starting at x=1 and going to x=5; <BR>taxes[x_]:= 45 + >0.97(taxes[x+1])/; > ><P>so that the following is generated: > ><P>45 + 0.97(45+0.97(45+0.97(45+0.97(45)))) > ><P>Thanks, > ><P>Eric Walters ><BR>ewalters@bio.fsu.edu</HTML> > 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@vandemoortele.be