MathGroup Archive 2007

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

Search the Archive

A Problem with x[i_]:=

  • To: mathgroup at
  • Subject: [mg82969] A Problem with x[i_]:=
  • From: John <jwa0 at>
  • 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

I am using Mathematica 6.


  • Prev by Date: How to change the font size in legend
  • Next by Date: Re: NDSolve with functions of vectors
  • Previous by thread: Re: Plot boundaries not respected
  • Next by thread: Re: A Problem with x[i_]:=