 |
1.8.11 Ordering in Lists
| Sort[list] | sort the elements of list into order | | Min[list] | the smallest element in list | | Ordering[list, n] | the positions of the n smallest elements in list | | Max[list] | the largest element in list | | Ordering[list, -n] | the positions of the n largest elements in list | | Ordering[list] | the ordering of all elements in list | | Permutations[list] | all possible orderings of list |
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. | |
Out[2]=
|
|
| This gives in order the positions of the 3 smallest elements. | |
Out[3]=
|
|
| Here are the actual elements. | |
Out[4]=
|
|
|
|
|