Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

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.


  • 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