PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Functional Programming
>
Functional Iteration
>
Mathematica
>
Core Language
>
Procedural Programming
>
Looping Constructs
>
Functional Iteration
>
Built-in
Mathematica
Symbol
Applying Functions Repeatedly
Tutorials »
|
Nest
NestWhileList
FoldList
FixedPointList
ComposeList
See Also »
|
Computational Systems
Constructing Lists
Functional Iteration
Functional Programming
Language Overview
List Manipulation
More About »
NestList
NestList
[
f
,
expr
,
n
]
gives a list of the results of applying
f
to
expr
0
through
n
times.
MORE INFORMATION
NestList
[
f
,
expr
,
n
]
gives a list of length
n
+1
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
In[1]:=
Out[1]=
In[2]:=
Out[2]=
The function to nest can be a pure function:
In[1]:=
Out[1]=
Scope
(3)
Generalizations & Extensions
(1)
Applications
(15)
Properties & Relations
(5)
Neat Examples
(4)
SEE ALSO
Nest
NestWhileList
FoldList
FixedPointList
ComposeList
TUTORIALS
Applying Functions Repeatedly
MORE ABOUT
Computational Systems
Constructing Lists
Functional Iteration
Functional Programming
Language Overview
List Manipulation
RELATED LINKS
Demonstrations with NestList
(
Wolfram Demonstrations Project
)
NKS|Online
(
A New Kind of Science
)
New in 1
© 2008 Wolfram Research, Inc.