Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / The Mathematica Book / A Practical Introduction to Mathematica / Lists /

1.8.11 Ordering in Lists

Ordering in lists.

Here is a list.

In[1]:= t = {17, 21, 14, 9, 18}

Out[1]=

This gives the smallest element in the list.

In[2]:= Min[t]

Out[2]=

This gives in order the positions of the 3 smallest elements.

In[3]:= Ordering[t, 3]

Out[3]=

Here are the actual elements.

In[4]:= t[[%]]

Out[4]=



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


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