calculate all the elements in the array