MathGroup Archive 2005

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

Search the Archive

Re: defining a recursive formula?


p[R_] := i*R - a
f[n_Integer] := Nest[p, R, 5]

f[5]
-a + i*(-a +
     i*(-a + i*(-a +
         i*(-a + i*R))))

Bobby

On Fri, 4 Mar 2005 05:08:04 -0500 (EST), lou zion <illuzioner at adelphia.net> wrote:

> can someone help me represent the following?
>
> i have a quantity p[R_] := i* R -a
>
> i need to compute
>
> F[N_]  := p[p[p[p[p[R]]]]]  to N levels deep.
>
> how can i do this? thanks!
>
> lou
>
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Help Mathematica
  • Next by Date: Re: defining a recursive formula?
  • Previous by thread: defining a recursive formula?
  • Next by thread: Re: defining a recursive formula?