I have values such as 2,4, 7, 10 , that is not sequential but are stored in array w. Can I use the summation $ {\sum_{i = 1}^{n} w[i]} $
or there is another way to write it down ?
I have values such as 2,4, 7, 10 , that is not sequential but are stored in array w. Can I use the summation $ {\sum_{i = 1}^{n} w[i]} $
or there is another way to write it down ?
in programming if we have array $w={1,2,3,4....}$,then we write $w[i]$,in mathematics you can simple write $w_i$
This notation is not considered unusual in computer science. While I don't have an example for the sum over an array handy, the bracket notation occurs, e.g., in Bradley and Manna's "The Calculus of Computation".