Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Constructing Matrices >

Array

Array[f, n]
generates a list of length n, with elements f[i].
Array[f, {n1, n2, ...}]
generates an n_1⨯n_2⨯... array of nested lists, with elements f[i1, i2, ...].
Array[f, {n1, n2, ...}, {r1, r2, ...}]
generates a list using the index origins ri (default 1).
Array[f, dims, origin, h]
uses head h, rather than List, for each level of the array.
New in 1 | Last modified in 4
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team