ActionScripting in Flash MX

A.3 Summation

Summation of a series of numbers is frequently used in statistical and communication theory. A shorthand notation is used to represent a series of additions:

where the general form is:

For example:

represents the sum of the series X1 + X2 + X3 + ... Xn. To illustrate, if n = 4 and the series of numbers is {1, 2, 3, 4}, then this operation would produce the result 10. Note that the variable expression must be summed before any external operator can be applied; so for example:

This is clearly demonstrated using the previous example series {1, 2, 3, 4} and n = 4.

Summation is frequently used with more complex variable expressions, such as summation of a series of products:

It is important to recognize here that the first instance of x is multiplied by the first instance of y and so on through the series. There are a number of other basic rules applicable to summation operations, these include:

Категории