Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /

Nest

FilledSmallSquare Nest[f, expr, n] gives an expression with f applied n times to expr.

FilledSmallSquare Example: Nest[f, x, 3] LongRightArrow.

FilledSmallSquare You can use Throw to exit from Nest before it is finished.

FilledSmallSquare See Section 2.2.2.

FilledSmallSquare See also: NestList, NestWhile, Fold, Function, FixedPoint, Do.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.