MathGroup Archive 2007

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

Search the Archive

Re: A Problem with x[i_]:=

  • To: mathgroup at
  • Subject: [mg82982] Re: A Problem with x[i_]:=
  • From: dh <dh at>
  • Date: Tue, 6 Nov 2007 03:38:46 -0500 (EST)
  • References: <fgmq4o$9tv$>

Hi John,

I guess x in your case already has a value. Try: x=. or Clear[x] befor 

doing the definition.

hope this helps, Daniel

John wrote:

> The assignment, x=N[Total[-2Log[((n)(pdpd)/v[I])^v[i]]],10], executes

> for i=1,2,..,10, and I can make a list of the 10 outcomes by repeating

> the assignment 10 times.


> I thought that the assignment, x[i_]:=N{Total[-2Log[((n)(pdpd)/

> v[i])^v[i]]],10], would make a list of the 10 outcomes, without the

> necessity of manual repetitions, but Mathematica rejected it.


> The error message tells me that my assignment won't execute because

> times is protected.


> There must be some way to do what I want to do, but I can't figure it

> out.


> I am using Mathematica 6.


> John



  • Prev by Date: Re: Re: Re: "Accumulate" in Mathematica 6
  • Next by Date: Re: Plot boundaries not respected
  • Previous by thread: A Problem with x[i_]:=
  • Next by thread: Re: A Problem with x[i_]:=