Re: Plot a recurrence relation
- To: mathgroup at smc.vnet.net
- Subject: [mg40183] Re: Plot a recurrence relation
- From: Bill Rowe <listuser at earthlink.net>
- Date: Tue, 25 Mar 2003 03:04:37 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 3/24/03 at 4:28 AM, davidol at hushmail.com (David) wrote:
>How can I get mathematica to plot a sequence that's defined
>recursively e.g.
>
>a_0 = 6
> a_(n+1) = a_n / (2n - 7)
Generate the values to be plotted then use ListPlot, e.g.
a[0]:=0
a[n_Integer]:=a[n-1]/(4 n - 9)
d = Table[a[n],{n, 0, 10}];
ListPlot[d];
Alternatively, use the package DiscreteMath`RSolve` to solve the recurrence relationship for an explicit expression for the nth term and plot it.