Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Re: question about nest

  • To: mathgroup at
  • Subject: [mg1961] Re: question about nest
  • From: Scott.A.Hill at (Lancelot)
  • Date: Sun, 27 Aug 1995 23:23:49 -0400
  • Organization: Williams College, Williamstown MA

In article <DDsGrD.Gy6 at>,
ORLANDO LUIS GOULART PERES  <orlando at> wrote:
>Dear Wizards
>I have a function with two variables
>And I need the n-compose function
>But Mathematica look for a function f[x] and not f[x,a]
>Is this possible to use Nest with this two variable function?
>For example, I need
>f[x,a], f[f[x,a],a], f[f[f[x,a],a],a] .
>Later I will put many values for "a" .
>Orlando Peres

	This is inelegant, but the easiest way I see to do it is with
the following:


Be sure to Clear and Remove g when you are done with it, of course.

	I'll leave it to the real wizards to develop a more elegant
solution.  (Probably using Cases, Select, and MapIndexed, no doubt.:)

:@-) Scott

  • Prev by Date: Re: Question: how to get Sin[n*Pi]=0 (n integer)
  • Next by Date: Re: Kernel Memory
  • Previous by thread: Re: question about nest
  • Next by thread: Re: Re: question about nest