0
$\begingroup$

Inputs

Start with a vector $x\in\mathbb{R}^{n}$, and a vector-valued function $f:\mathbb{R}^{n}\mapsto\mathbb{R}^{n}$.

Output

Given some $k\in\mathbb{Z}^{+}$, what are elegant ways to produce the table of convolutes?

{x, f(x), f(f(x)), f(f(f(x))), ..., f^{k}(x)}
$\endgroup$
1
$\begingroup$

Say $ k = 6 $,

NestList[f, x, 6]
{x, f[x], f[f[x]], f[f[f[x]]], f[f[f[f[x]]]], f[f[f[f[f[x]]]]], f[f[f[f[f[f[x]]]]]]}
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.