Re: recursive relation problem ?

• To: mathgroup at smc.vnet.net
• Subject: [mg13666] Re: [mg13656] recursive relation problem ?
• From: Unal Goktas <unalg>
• Date: Sat, 15 Aug 1998 04:39:02 -0400
• Organization: Wolfram Research, Inc.
• References: <199808110856.EAA10627@smc.vnet.net.>
• Sender: owner-wri-mathgroup at wolfram.com

```cplai at geocities.com wrote:

> 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);
>
> Regards
>
> William.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

You can achieve this by doing:

In[1]:= <<DiscreteMath`RSolve`

In[2]:= RSolve[{f[x] == x f[x-1], f[0] == 1, f[1] == 1}, f[x], x]

Out[2]= {{f[x] -> x!}}

----

Unal Goktas

```

• Prev by Date: Re: recursive relation problem ?
• Next by Date: Re: High precision numbers and Plot[] ?
• Previous by thread: recursive relation problem ?
• Next by thread: Re: recursive relation problem ?