Re: Newbie question: Which is more versatile, Table[] or Array[]?
- To: mathgroup at smc.vnet.net
- Subject: [mg94151] Re: Newbie question: Which is more versatile, Table[] or Array[]?
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Fri, 5 Dec 2008 07:06:02 -0500 (EST)
- Organization: University of Bergen
- References: <ghb034$oii$1@smc.vnet.net>
stpatryck wrote:
> I'm reading the Schaum's Outline for Mathematica and am in the chapter
> concerning list manipulation. So far, the only difference I can tell
> between the Array[] and Table[] commands is that with Table, you use
> an expression as the first parameter/argument and with Array, you use
> a function. The other parameters, of course, are tailored differently
> because they support the first parameter i.e. expression or function.
>
> Anyone know of any significant difference between these two commands
> other than syntax? Please feel free to e-mail me at
> stpatryck at gmail.com.
>
Mathematica is full of redundancies. In some situations Array might be
more convenient than Table.
For example,
lct[n_] := Array[Signature[{##}]&, Array[n&,n]]
will give the n-dimensional Levi Civita tensor.