[Date Index]
[Thread Index]
[Author Index]
Re: question about nest
*To*: mathgroup at christensen.cybernetics.net
*Subject*: [mg1955] Re: question about nest
*From*: Sigurd.Schelstraete at rug.ac.be (Sigurd Schelstraete)
*Date*: Sat, 26 Aug 1995 00:10:29 -0400
*Organization*: University of Ghent, Belgium
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
Prev by Date:
**Re: Plotting Piecewise Functions with Discontinuites**
Next by Date:
**Re: Question: how to get Sin[n*Pi]=0 (n integer)**
Previous by thread:
**Re: question about nest**
Next by thread:
**Re: question about nest**
| |