Mathematica 9 is now available
 Documentation /  Mathematica /  The Mathematica Book /  A Practical Introduction to Mathematica /  Lists /

Advanced Topic: Rearranging Nested ListsContents

1.8.15 Advanced Topic: Combinatorial Operations

You can use lists to set up many kinds of combinatorial calculations. Here are a few examples.

Some combinatorial operations on lists.

This gives the possible permutations of three elements.

In[1]:= Permutations[{a,b,c}]

Out[1]=

This combines the list elements in all possible ways. This operation is analogous to a mathematical "outer product" (see Section 3.7.11).

In[2]:= Outer[List, {a, b}, {c, d}]

Out[2]=

Advanced Topic: Rearranging Nested ListsContents



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.