Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: defining a recursive formula?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54884] Re: defining a recursive formula?
  • From: Curt Fischer <tentrillion at gmail.NOSPAM.com>
  • Date: Sat, 5 Mar 2005 01:34:29 -0500 (EST)
  • References: <d09dnj$d80$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

lou zion 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

In[1]:=
p[R_] := i*R - a

In[2]:=

Nest[p, R, 5]
Out[2]=
-a + i*(-a +
     i*(-a + i*(-a +
         i*(-a + i*R))))

-- 
Curt Fischer


  • Prev by Date: Kernel Problem
  • Next by Date: Re: help browser cells inactive?
  • Previous by thread: Re: defining a recursive formula?
  • Next by thread: Re: defining a recursive formula?