Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Simple recursive assignment

  • To: mathgroup at
  • Subject: [mg16012] Re: Simple recursive assignment
  • From: Jens-Peer Kuska <kuska at>
  • Date: Sat, 20 Feb 1999 02:52:04 -0500
  • Organization: Universitaet Leipzig
  • References: <7ajadc$>
  • Sender: owner-wri-mathgroup at

Hi Peltino,

what is with ?

    b[nn_Integer]:=b[nn]=expr /. n->nn

Hope that helps

Peltio wrote:
> Can someone spare a little time for a trivial question?
---- SNIP SNAPP --- SNIP SNAP ----
> But how can I achieve the same results when the expression a[n-1]-a[n-2]/n
> is stored in a variable expr? The following approach leads to a Recursion
> Limit error
>     expr=b[n-1]-b[n-2]/n;
>     b[0]=1;
>     b[1]=2;
>     b[n_]:=b[n]=expr
>     b[3]
>         $RecursionLimit::reclim: etc.

  • Prev by Date: telling DSolve to satisfy boundary conditions?
  • Next by Date: Re: Simple recursive assignment
  • Previous by thread: Re: Simple recursive assignment
  • Next by thread: Re: Simple recursive assignment