- #1

atomqwerty

- 94

- 0

I want to determinate the average of a set of quantities which each one has a different value, for example

3 has value 4.5

4 has value 5

3.5 has value 6

4 has value 3

5 has value 5

and so on...

If I do 3*4.5 + 4*5 + 3.5*6 +... and divide it by the number of elements I obtain a number that is not the average of the set...

Any help for this noob?

Thanks!!