MathGroup Archive 2006

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

Search the Archive

Question on using Table in module

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67894] Question on using Table in module
  • From: "Nag" <Naga1010 at gmail.com>
  • Date: Wed, 12 Jul 2006 05:05:22 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello:

Look at the following code fragment.

a = {1, 0}
b[x_,n_,d_]:=Module[{i},x[[n]]=d];
b[a,2,40]

?a
a = {1, 0}

Executing gives the error message:
Set::setps: {1, 0} in assignment of part is not a symbol.

I followed the link to the Help browser, but do not understand the
explanation.

What is happening here? Please help.

Best
Nag


  • Prev by Date: List Question
  • Next by Date: Re: RE:How to get a positive solution from Solve Command
  • Previous by thread: Re: List Question
  • Next by thread: Re: Question on using Table in module