Re: help: recursive functions
- To: mathgroup at smc.vnet.net
- Subject: [mg32621] Re: [mg32616] help: recursive functions
- From: Andrzej Kozlowski <andrzej at platon.c.u-tokyo.ac.jp>
- Date: Fri, 1 Feb 2002 02:02:22 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
It's not just a matter of "entering". Obviously you must specify values for y[0] and y[1] otherwise your recursion will never end. As for your other question: you can use the FilledPlot command after loading the Graphics`FilledPlot` On Thursday, January 31, 2002, at 03:45 PM, Okke wrote: > Hello, > > I'm having some problems with a recursive function. > Could somebody please help me by telling me how I > should enter such a function? > > tia, > > This is what I've done so far: > > f[n_]:=Sin[Pi*n*(0.05+(0.0005*n))] > y[n_]:=1.5*y[n-1]-0.85*y[n-2]+f[n] > > I'm trying to Plot[y[n],{n,0,320}] but that gives me > an error: $RecursionLimit::reclim: Recursion depth of 256 exceeded. > > btw, is there an option to fill the area under the sine? > > -- > Okke > > remove NOSPAM from my email address to reply > > > Andrzej Kozlowski Toyama International University JAPAN http://platon.c.u-tokyo.ac.jp/andrzej/