Now instead of printing f f f … f f I’d like to see actual values of the function f after evaluation such as {value 1, value 2, value 3, …, value n}. Moreover I’d like to plot such a NestList where values in NestList would be coordinates of n points on axis.
Any help, advice or example would be greatly appreciated.
EDIT: I’m studying Dynamic systems and trying to compute and plot so called [“tent map”] (Tent map - Wikipedia)
You defined the function f incorrectly. If you want to pass it a list of two arguments your pattern must be a list. Also, all patterns for named variables must have underscores after them:
f operates on a list the first time, it returns a single number, then you send that number to f again. The function f does not know what to do with a single number unless you define another function of f that takes one number. You can see this in your output because you have f[.4] for example.