I want to plot the iterates of the function $f(x)=13xe^{-x}$ up to power $4$. So I am using the code Plot[{f[x], h[x], j[x], g[x], x}, {x, -0.3, 4}]
where $f,h,j,g$ are the first, second, third, and fourth iterate of the function respectively. This sort of works, but overflow errors are thrown in my face:
This is probably because the iterates get pretty complicated and probably give very large values. So, is there a better way to plot these functions?
h[x] == f[f[x]]
etc.? What is the code you use to definef,h,j,g
? $\endgroup$Plot[Rest[NestList[13 # Exp[-#] &, x, 4]], {x, -0.03, 4}, Evaluated -> True]
instead. $\endgroup$