Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

silly problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85274] silly problem
  • From: "Francis Bitonti" <frankb.mail at gmail.com>
  • Date: Tue, 5 Feb 2008 06:00:36 -0500 (EST)

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}}*
*



  • Prev by Date: Best practice passing expressions to functions
  • Next by Date: Re: pattern matching against the Dt function?
  • Previous by thread: Re: Best practice passing expressions to functions
  • Next by thread: Re: silly problem