Suppose I have the following function g[{x_, y_}, c0_, b_] := {x^2 + c0 - b*y, x}
where b
and c0
are parameter values.
Suppose we fix the values of c0
and b
, say, g[{x_, y_}, -5, 1.2]
. Is there a way to get the $nth$ composition of g
with itself? So a function say G[{x_,y_},n,-5,1.2]
which gives g[{x, y}, -5, 1.2] @* g[{x, y}, -5, 1.2] @* ... @* g[{x, y}, -5, 1.2]
$n$ times? I would like to then use this to find period $n$ points using NSolve
so I think this is the form I would require.