

Nest

Examples
open all close allScope (4)
Generalizations & Extensions (2)
Applications (8)
Properties & Relations (6)
Nest gives the last element of NestList:
Nest is effectively Composition using the same function multiple times:
Use RSolve to symbolically compute Nest operations:
Different length compositions or nests give the same result:
FixedPoint automatically goes on until the result no longer changes:
NestWhile goes on while a condition is true:
Fold automatically inserts second arguments from a list:
See Also
NestList NestGraph NestWhile Fold Function FixedPoint Do Composition
Tech Notes
Related Guides
History
Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2024 (14.1)
Text
Wolfram Research (1988), Nest, Wolfram Language function, https://reference.wolfram.com/language/ref/Nest.html (updated 2024).
CMS
Wolfram Language. 1988. "Nest." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/Nest.html.
APA
Wolfram Language. (1988). Nest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Nest.html
BibTeX
@misc{reference.wolfram_2025_nest, author="Wolfram Research", title="{Nest}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/Nest.html}", note=[Accessed: 06-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_nest, organization={Wolfram Research}, title={Nest}, year={2024}, url={https://reference.wolfram.com/language/ref/Nest.html}, note=[Accessed: 06-August-2025]}