MathGroup Archive 1998

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

Search the Archive

Re: recursive relation problem ?

  • To: mathgroup at
  • Subject: [mg13686] Re: recursive relation problem ?
  • From: "Allan Hayes" <hay at>
  • Date: Sat, 15 Aug 1998 04:39:18 -0400
  • References: <6qp2vd$>
  • Sender: owner-wri-mathgroup at

cplai at wrote in message <6qp2vd$aiu at>...
>Dear all,
>I am studying data structure, and always encounter recursive relation
>equations. How do I use mathematica to give general solution of
>recursive relation.
>For example: f(0)=1; f(1)=1; f(x)=x*f(x-1);


Load the Standard Package DiscreteMath`RSolve`


Then we have

RSolve[{f[0]==1, f[1]==1, f[x]==x*f[x-1]},f[x], x]


Allan Hayes
Training and Consulting
Leicester UK
hay at
voice: +44 (0)116 271 4198
fax: +44(0)116 271 8642

  • Prev by Date: RE: Request for help: working with multi-level lists
  • Next by Date: AbstractAlgebra
  • Previous by thread: Re: recursive relation problem ?
  • Next by thread: Re: recursive relation problem ?