Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Programming /  Functional Programming /

Array

FilledSmallSquare Array[f, n] generates a list of length n, with elements f[i].
FilledSmallSquare Array[f, , , ... ] generates an array of nested lists, with elements f[, , ... ].
FilledSmallSquare Array[f, , , ... , , , ... ] generates a list using the index origins (default 1).
FilledSmallSquare Array[f, dims, origin, h] uses head h, rather than List, for each level of the array.

FilledSmallSquare Examples: Array[f, 3]LongRightArrow.
FilledSmallSquare Array[f, 2, 3]LongRightArrow generates a matrix.
FilledSmallSquare Array[#1^#2 &, 2, 2]LongRightArrow.
FilledSmallSquare Array[f, 3, 0]LongRightArrow generates an array with the index starting at zero.
FilledSmallSquare Array[f, 3, 1, Plus]LongRightArrow.
FilledSmallSquare Note that the dimensions given to Array are not in standard Mathematica TE iterator notation.
FilledSmallSquare See The Mathematica Book on the web: Section 1.8.3 and Section 2.2.6.
FilledSmallSquare See also: Table.