|
Further Examples: NestWhile
This gives the first prime after .
In[1]:= 
Out[1]= 
is the th integer counting from .
In[2]:= 
Out[2]= 
Here is a function that takes a single step in the Newton approximation to .
In[3]:= 
Here is a way to get a good approximation to .
In[4]:= 
Out[4]= 
Here are two more ways to get the same result.
In[5]:= 
Out[5]= 
In[6]:= 
Out[6]= 
In[7]:= 
|