Re: A Problem with x[i_]:=

*To*: mathgroup at smc.vnet.net*Subject*: [mg82982] Re: A Problem with x[i_]:=*From*: dh <dh at metrohm.ch>*Date*: Tue, 6 Nov 2007 03:38:46 -0500 (EST)*References*: <fgmq4o$9tv$1@smc.vnet.net>

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