A Problem with x[i_]:=

*To*: mathgroup at smc.vnet.net*Subject*: [mg82969] A Problem with x[i_]:=*From*: John <jwa0 at lehigh.edu>*Date*: Mon, 5 Nov 2007 05:03:05 -0500 (EST)

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