MathGroup Archive 2005

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

Search the Archive

Re: Replace in recursive equations

On 19 Feb 2005, at 08:32, Skirmantas wrote:

> The last sentence of my previous message about Inverse got somehow
> scrambled. I meant "I have to re-input the output to get the result."
> One more quick question. Suppose I have a recursive equation F[n+1]==a
> F[n]. I want to replace F[n]->FF[n]+Q for _all_ n's. Q is a constant.
> What is the best way to do it? The left side should become FF[n+1]+Q
> and the right a(FF[n]+Q). Any help would be appreciated.

F[n + 1] == a*F[n] /. F[x_] -> FF[x] + Q

Q + FF[n + 1] == a*(Q + FF[n])

Andrzej Kozlowski
Chiba, Japan

  • Prev by Date: Re: How do I get a DSolve'd function
  • Next by Date: RE: computing cumulative sum for list
  • Previous by thread: Replace in recursive equations
  • Next by thread: Re: Replace in recursive equations