Nest
Usage
• Nest[f, expr, n] 返回一个把f 在expr上作用n次后得到的表达式
Notes
• 例如: Nest[f, x, 3]  . • 你可以使用Throw在Nest被完成之前从Nest退出.
Further Examples
This nests the function f four times starting with initial value x.
In[1]:=
|
Out[1]=
|
This iteration provides evidence that the sine function approaches its fixed point at zero very slowly.
In[2]:=
|
Out[2]=
|
See the Further Examples for NestList.
|