Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

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

Further Examples: NestWhileList

This gives the list of consecutive integers starting at up to the next integer that is prime.

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]:=

This repeatedly applies step, stopping when successive results are no longer considered unequal.

In[4]:=

Out[4]=

Here are two more ways to get the same result.

In[5]:=

Out[5]=

In[6]:=

Out[6]=

In[7]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: