Nest

Nest[f,expr,n]

gives an expression with f applied n times to expr.

Details

Examples

open allclose all

Basic Examples  (2)

In[1]:=
Click for copyable input
Out[1]=

The function to nest can be a pure function:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Generalizations & Extensions  (2)

Applications  (8)

Properties & Relations  (6)

Neat Examples  (4)

See Also

NestList  NestGraph  NestWhile  Fold  Function  FixedPoint  Do  Composition

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)