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