Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69255] RE: [mg69220] Array
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 3 Sep 2006 23:47:04 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Bruce,

You need to Evaluate the left hand side, and generally also Clear A in
advance if you ever reevaluate.

Clear[A];
Evaluate[Array[A, 3]] = {1, 2, 3};

{A[1], A[2], A[3]}
{1, 2, 3}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Bruce Colletti [mailto:vze269bv at verizon.net]
To: mathgroup at smc.vnet.net


The command:

   {A[1], A[2], A[3]} = {1, 2, 3}

assigns a value to each A-variable.  However, the command:

   Array[A,3] = {1,2,3}

generates an error message.

What is the difference between the two lines?

Thankx.

Bruce



  • Prev by Date: Re: how to identify plane and measuring planar area
  • Next by Date: Re: Array
  • Previous by thread: Re: Array
  • Next by thread: Re: Array