- #1
peter.a
- 21
- 0
say I have a function f(x)=x^7+k
I want to iterate x(n+1)=f(xn), 50 times
starting with x0=1
and keep the last 10 values
i want to assigh these values to some function''y'' and be able to use y to calculate this iteration for any input constant K. ie say K=0, K=0.5 etc, and then i want to store these values for different values of constants?Is this possible?I can't figure it out
i have tried this far
f:=x^7+k
y:=Take[NestList[f, 0, 50], -10]
I want to iterate x(n+1)=f(xn), 50 times
starting with x0=1
and keep the last 10 values
i want to assigh these values to some function''y'' and be able to use y to calculate this iteration for any input constant K. ie say K=0, K=0.5 etc, and then i want to store these values for different values of constants?Is this possible?I can't figure it out
i have tried this far
f:=x^7+k
y:=Take[NestList[f, 0, 50], -10]