1
$\begingroup$

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 ?

  • 1
    As long as you define the notation $w[i]$, you should be fine.2012-08-07

2 Answers 2

1

in programming if we have array $w={1,2,3,4....}$,then we write $w[i]$,in mathematics you can simple write $w_i$

0

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".