NestList[f, expr, n] gives a list of the results of applying f to expr 0 through n times.
Making lists from functions. This makes a list of 5 elements, each of the form p[i]. Here is another way to produce the same list.
Many programs you write will involve operations that need to be iterated several times. Nest and NestList are powerful constructs for doing this. Applying functions of one ...
The execution of a Mathematica program involves the evaluation of a sequence of Mathematica expressions. In simple programs, the expressions to be evaluated may be separated ...
Looping is a core concept in programming. Mathematica provides powerful primitives for specifying and controlling looping, not only in traditional procedural programming, but ...
ComposeList[{f_1, f_2, ...}, x] generates a list of the form {x, f_1[x], f_2[f_1[x]], ...}.
Mathematica is the tool that has made possible Stephen Wolfram's exploration of the computational universe, and the emerging field of Wolfram Science (NKS). Whether for ...
Long used in its simplest form in mathematics, functional iteration is an elegant way to represent repeated operations. Mathematica's symbolic architecture makes powerful ...
At the core of Mathematica is its highly developed symbolic language, which unifies a broad range of programming paradigms and uses its unique concept of symbolic programming ...
Lists are very important and general structures in Mathematica. They allow you to treat collections of all kinds of objects as a single entity. There are many ways to ...