ORLANDO LUIS GOULART PERES (orlando at axp.ift.unesp.br) wrote:
: Dear Wizards
: I have a function with two variables
: f[x_,a_]:=a*x*(1-x)
: And I need the n-compose function
: Nest[f,x,n]
: 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" .
: Regards
: Orlando Peres
You could try the following:
Nest[f[#,a]&,x,n]
For n=3 for instance, this gives:
f[f[f[x,a],a],a]
Sigurd Schelstraete
University of Gent
Belgium