One of my equations uses a set of variables which ultimately for a set of certain values gives a list of 8 numbers: c=13.9506 (31 - k) following cc(sub k) = Round[Table[13.950621339931203(31 - k), {k, 1, 8, 1}]] Results in the following List {419, 405, 391, 377, 363, 349, 335, 321} which feeds another equation with summation: **My problem is that the final Variable cc with a subscript k, when its used in the bellow summation it DOES not consider each element of the list as vector Instead it leaves the element as it is!! WHAT SHOULD I DO in order when the summation sees cc subscript 1 to use the value of 419, cc(sub 2) the value of 405 (but without denote each var separately)**
enter code here`tc = !(
*UnderoverscriptBox[([Sum]), (k = 1), (depo)](
*SuperscriptBox[((1 + wacc)), (-k)]
*SubscriptBox[(cc), (k)]))``
Forgive my ignorance and thank y in advance.
Please consider that I need to use the subscript and not use loops of if. A similar example of my problem can be seen in the picture attached where the summation doesnot count the values of the list according to subscript
Subcript
and its ilk. And nobody should. Please provide complete and syntactically correct code and certainly someone around here can show you how to perform your task more elegantly. For the moment, I can say thatPart
and its short form[[ ]]
should be prefered for indexing into lists and arrays (and in fact, into all Mathematica expressions). AlsoIndexed
might be a good and robust way to index into arrays. $\endgroup$