Re: Recursion
- To: mathgroup at smc.vnet.net
- Subject: [mg62315] Re: Recursion
- From: "Chris Chiasson" <chris.chiasson at gmail.com>
- Date: Sat, 19 Nov 2005 23:18:51 -0500 (EST)
- References: <dln0s1$ga7$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Fujio Takata,
Perhaps the following code will work for you:
x[Condition[t_,t\[LessEqual]0]]=2
x[Condition[t_,t>0]]=a x[t-1](1-x[t-1])
Block[{a=2},Plot[x[t],{t,0,9}]]
On another note, can anyone explain why the following code blows up?
x[t_]=Piecewise[{{2,t<=0},{a x[t-1](1-x[t-1]),5>t>0}}]
Regards,
--
http://chrischiasson.com/contact/chris_chiasson
- Follow-Ups:
- Re: Re: Recursion
- From: Pratik Desai <pdesai1@umbc.edu>
- Re: Re: Recursion