I'd like to use the Table command without defining n, so that I can have a list of n arguments.
It is possible for the Sum command, but I guess not for the Table command, or is it? Something like
n = 5; eSO = Table[e[i], {i, 1, n}]; ebar[1] = EBAU - Sum[ebar[i], {i, 2, n}];
a[1] = A - Sum[a[i], {i, 2, n}]; b[1] = B - Sum[b[i], {i, 2, n}];
Cost = Table[1/2/a[i]*(ebar[i] - e[i])^2 + b[i]*(Sum[e[i], {i, n}])^2 /2, {i, 1, n}];
FOC = Table[D[Sum[Cost[[i]], {i, n}] == 0, e[i]], {i, 1, n}];
solsSO = eSO /. Solve[FOC, eSO];
solsSO = Flatten[solsSO];
ESO = Simplify[Sum[solsSO[[i]], {i, n}]]
but a bit more complicated in the end.
wi=Table[Table[Sin[i],{i,1,m}],{m,1,10}]– partial81 Jun 25 '12 at 13:27Table[w[i], {i, {1, 2, 4, 3, 7, 2, 11}}], i.e. callingTablewith a list of predefined index values? – István Zachar Jun 25 '12 at 13:30{w[1],w[2],...,w[n-1],w[n]}
– Max M Jun 25 '12 at 13:51