Mathematica 9 is now available


Take[list, n] gives the first n elements of list.
Take[list, -n] gives the last n elements of list.
Take[list, {m, n}] gives elements m through n of list.
Take[list, {m, n, s}] gives elements m through n in steps of s.
Take[list,  ,  , ... ] gives a nested list in which elements specified by  are taken at level i in list.

• Examples: Take[{a, b, c, d, e}, 3] LongRightArrow  .
Take[{a, b, c, d, e}, -2] LongRightArrow  .
Take[list,  ,  ] effectively extracts a submatrix from list.
• Example: Take[{{a, b, c}, {d, e, f}}, -1, 2] LongRightArrow  .
• See also:
ColumnTake, Drop, Part, Partition, Select.


Using InstantCalculators

Here are the InstantCalculators for the Take function. Enter the parameters for your calculation and click Calculate to see the result.

Entering Commands Directly

You can paste a template for this command via the Text Input button on the Take Function Controller.

This takes the first three elements from the list.

This takes the last two elements from the list.

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