MathGroup Archive 2003

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

Search the Archive

Re: Plot a recurrence relation


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.


  • Prev by Date: Re: Plot a recurrence relation
  • Next by Date: proper way to manipulate lists?
  • Previous by thread: Re: Plot a recurrence relation
  • Next by thread: Re: Plot a recurrence relation