Summation
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
Summation
Summation is the addition of a set of numbers; the result is their sum or total. The "numbers" to be summed may be natural numbers, complex numbers, matrices, or still more complicated objects. An infinite sum is a subtle procedure known as a series. Note that the term summation has a special meaning in the context of divergent series related to extrapolation.
NotationThe summation of 1, 2, and 4 is 1 + 2 + 4 = 7. The sum is 7. Since addition is associative, it does not matter whether we interpret "1 + 2 + 4" as (1 + 2) + 4 or as 1 + (2 + 4); the result is the same, so parentheses are usually omitted in a sum. Finite addition is also commutative, so the order in which the numbers are written does not affect its sum. (For issues with infinite summation, see absolute convergence.) If a sum has too many terms to be written out individually, the sum may be written with an ellipsis to mark out the missing terms. Thus, the sum of all the natural numbers from 1 to 100 is 1 + 2 + … + 99 + 100 = 5050. Capital-sigma notationMathematical notation has a special representation for compactly representing summation of many similar terms: the summation symbol, a large upright capital Sigma. This is defined thus:
The subscript gives the symbol for an index variable, i. Here, i represents the index of summation; m is the lower bound of summation, and n is the upper bound of summation. Here i = m under the summation symbol means that the index i starts out equal to m. Successive values of i are found by adding 1 to the previous value of i, stopping when i = n. We could as well have used k instead of i, as in
Informal writing sometimes omits the definition of the index and bounds of summation when these are clear from context, as in
which is informally equivalent to
One often sees generalizations of this notation in which an arbitrary logical condition is supplied, and the sum is intended to be taken over all values satisfying the condition. For example:
is the sum of f(k) over all (integer) k in the specified range,
is the sum of f(x) over all elements x in the set S, and
is the sum of μ(d) over all integers d dividing n.
There are also ways to generalize the use of many sigma signs. For example,
is the same as
Programming language notationSummations can also be represented in a programming language. \sum_{i=m}^{n} x_{i} Some languages use a notation for summation similar to the mathematical one. For example, this is Python: and this is Fortran (or Matlab): and this is J : +/x In other languages loops are used, as in the following Visual Basic/VBScript program: or the following C/C++/C#/Java code, which assumes that the variables
int i;
int sum = 0;
for (i = m; i <= n; i++)
sum += x[i];
In some cases a loop can be written more concisely, as in this Perl code: or these alternative Ruby expressions: or in C++, using its standard library: when x is an built-in array or a std::vector. Note that most of these examples begin by initializing the sum variable to 0, the identity element for addition. (See "special cases" below). Also note that the traditional \sum notation allows for the upper bound to be less than the lower bound. In this case, the index variable is initialized with the upper bound instead of the lower bound, and it is decremented instead of incremented. Since addition is commutative, this might also be accomplished by swapping the upper and lower bound and incrementing in a positive direction as usual. Also note that the \sum notation evaluates to a definite value, while most of the loop constructs used above are only valid in an imperative programming language's statement context, requiring the use of an extra variable to hold the final value. It is the variable which would then be used in a larger expression. The exact meaning of \sum, and therefore its translation into a programming language, changes depending on the data type of the subscript and upper bound. In other words, \sum is an overloaded symbol. In the above examples, the subscript of \sum was translated into an assignment statement to an index variable at the beginning of a In the example below:
x is an iterator, which implies a The return value of \sum is a scalar in all examples given above. Special casesIt is possible to sum fewer than 2 numbers:
These degenerate cases are usually only used when the summation notation gives a degenerate result in a special case. For example, if m = n in the definition above, then there is only one term in the sum; if m = n + 1, then there is none. Approximation by definite integralsMany such approximations can be obtained by the following connection between sums and integrals, which holds for any: increasing function f:
decreasing function f:
For more general approximations, see the Euler?Maclaurin formula. For functions that are integrable on the interval [a, b], the Riemann sum can be used as an approximation of the definite integral. For example, the following formula is the left Riemann sum with equal partitioning of the interval:
The accuracy of such an approximation increases with the number n of subintervals, such that:
IdentitiesThe following are useful identities:
Growth ratesThe following are useful approximations (using theta notation):
See also
External links
cs:Sumace de:Summe el:??????? es:Sumatorio id:Penjumlahan is:Summa it:Sommatoria he:???? hu:Összegzés nl:Sommatie ja:?? no:Sum ru:????? (??????????) simple:Sum fi:Summa sv:Summa th:????? Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement