MathGroup Archive 2008

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

Search the Archive

Re: Re: silly problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85376] Re: [mg85348] Re: silly problem
  • From: "Francis Bitonti" <frankb.mail at gmail.com>
  • Date: Thu, 7 Feb 2008 22:29:23 -0500 (EST)
  • References: <fo9g1h$sbm$1@smc.vnet.net> <200802070941.EAA18304@smc.vnet.net>

Thanks for the help every one. I understand why I'm getting the error but
Now I got it to work.


On Feb 7, 2008 4:41 AM, David Bailey <dave at remove_thisdbailey.co.uk> wrote:

> Francis Bitonti wrote:
> > I'm new to Mathematica so this is a very basic question I think. but one
> > that has me hung up. I keep getting this error
> >
> > Set::write: Tag List in {0,0,0,0,0,0,0,0}[1] is Protected. >>
> >
> >
> > my code looks like this.
> >
> > *IN:*
> > For[i = 1, i < 6 , i++,
> >  Print[
> >   g = i;
> >   k[g] = twoDcalc[e1, a1, nodes[[{edges[[g, 1]], edges[[g, 2]]}]]]
> >   ]]
> >
> >
> > *
> > OUT:
> > **Set::write: Tag List in {0,0,0,0,0,0,0,0}[1] is Protected. >>
> > *{{3.26002*10^7,7.60672*10^7,-3.26002*10^7,-7.60672*10^7},{7.60672*10^\
> > 7,1.7749*10^8,-7.60672*10^7,-1.7749*10^8},{-3.26002*10^7,-7.60672*10^\
> > 7,3.26002*10^7,7.60672*10^7},{-7.60672*10^7,-1.7749*10^8,7.60672*10^7,\
> > 1.7749*10^8}}*
> >
> > Set::write: Tag List in {0,0,0,0,0,0,0,0}[2] is Protected. >>
> > *{{1.7749*10^8,7.60672*10^7,-1.7749*10^8,-7.60672*10^7},{7.60672*10^7,\
> > 3.26002*10^7,-7.60672*10^7,-3.26002*10^7},{-1.7749*10^8,-7.60672*10^7,\
> > 1.7749*10^8,7.60672*10^7},{-7.60672*10^7,-3.26002*10^7,7.60672*10^7,3.\
> > 26002*10^7}}
> >
> > *Set::write: Tag List in {0,0,0,0,0,0,0,0}[3] is Protected. >>
> > General::stop: Further output of Set::write will be suppressed during \
> > this calculation. >>
> > *{{1.88562*10^8,-1.88562*10^8,-1.88562*10^8,1.88562*10^8},{-1.88562*10^\
> > 8,1.88562*10^8,1.88562*10^8,-1.88562*10^8},{-1.88562*10^8,1.88562*10^\
> > 8,1.88562*10^8,-1.88562*10^8},{1.88562*10^8,-1.88562*10^8,-1.88562*10^\
> > 8,1.88562*10^8}}*
> > *
> >
> >
> Assuming k is an array, you should have written k[[g]]=...
>
> David Bailey
> http://www.dbaileyconsultancy.co.uk
>
>


-- 

_Francis Bitonti
web: http://www.fadarch.com/



  • Prev by Date: Re: How does Position work?
  • Next by Date: Re: Table of Contents
  • Previous by thread: Re: silly problem
  • Next by thread: MapThread error with NET/Link function