Summation is the addition of a set of numbers; the result is their sum or total. An interim or present total of a summation process is termed the running 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.
Contents |
The 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. This sum can be
achieved using the formula for an arithmetic sequence,
where a is the first term (1), d is the common
difference (1) and n is the number of terms in the
sequence (100).
Mathematical notation has a special representation for compactly representing summation of many similar terms: the summation symbol ∑ (U+2211), 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. An example:
.Informal writing sometimes omits the definition of the index and bounds of summation when these are clear from context, as in
.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.[1]
There are also ways to generalize the use of many sigma signs. For example,

is the same as

A similar notation is applied when it comes to finding multiplicative products; the same basic structure is used, with ∏, or the capital pi, replacing the ∑.
Summations can also be represented in a programming language. Some languages use a notation for summation similar to the mathematical one. For example, this is Python:
sum(x[m:n+1])
and this is the Perl equivalent of the above Python:
use List::Util 'sum'; sum($m..$n);
and this is Fortran (or MATLAB):
sum(x(m:n))
and this is J:
+/x
and this is Haskell:
sum x
and this is Scheme:
(apply + x)
TI Basic
sum(seq(x,x,m,n[,1))] #text in [brackets] is optional
In other languages loops are used, as in the following Visual Basic/VBScript program:
Sum = 0 For I = M To N Sum = Sum + X(I) Next I
or the following C/C++/C#/Java code, which assumes
that the variables m and n are defined as
integer types no wider than int, such that
m ≤ n, and that the variable
x is defined as an array of values of integer type no
wider than int, containing at least
m − n + 1 defined
elements:
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:
$sum += $x[$_] for ($m..$n);
or these alternative Ruby expressions:
x[m..n].inject{|a,b| a+b} x[m..n].inject(0){|a,b| a+b}
or in C++, using its standard library:
std::accumulate(&x[m], &x[n + 1], 0)
when x is a 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 ∑ 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 ∑, and therefore its translation into a programming language, changes depending on the data type of the subscript and upper bound. In other words, ∑ is an overloaded symbol.
In the above examples, the subscript of ∑ was translated into an
assignment statement to an index variable at the beginning of a
for loop. But the subscript is not always an
assignment statement. Sometimes the subscript sets up the iterator
for a foreach loop, and sometimes the subscript is
itself an array, with no index variable or iterator provided. Other
times, the subscript is merely a Boolean expression that contains an embedded
variable, implying to a human, but not to a computer, that every
value of the variable should be used where the Boolean expression
evaluates to true.
In the example below:

x is an iterator, which
implies a foreach loop, but S is a set, which is an array-like data
structure that can store values of mixed type. The summation
routine for a set would have to account for the fact that it is
possible to store non-numerical data in a set.
The return value of ∑ is a scalar in all examples given above.
It 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, then there is none.
Many 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:

The following are useful identities:
,
where 'C' is a distributed constant. (See Scalar
multiplication)![\sum_{n=s}^t f(n) + \sum_{n=s}^{t} g(n) = \sum_{n=s}^t \left[f(n) + g(n)\right]](http://images-mediawiki-sites.thefullwiki.org/00/4/2/0/932648442773121.png)
![\sum_{n=s}^t f(n) - \sum_{n=s}^{t} g(n) = \sum_{n=s}^t \left[f(n) - g(n)\right]](http://images-mediawiki-sites.thefullwiki.org/04/6/2/7/8142403139021319.png)



,
definition of multiplication where n is an integer multiplier to
x
(See Harmonic
number)
(see arithmetic series)
(Special case of the arithmetic series)
![\sum_{i=1}^n i^3 = \left(\frac{n(n+1)}{2}\right)^2 = \frac{n^4}{4} + \frac{n^3}{2} + \frac{n^2}{4} = \left[\sum_{i=1}^n i\right]^2](http://images-mediawiki-sites.thefullwiki.org/03/3/6/0/72391473531583950.png)


(see geometric
series)
(special case of the above where m = 0)
(special case of the above where x = 1/2)
(special case of the above where x = 2)
(see binomial coefficient)







(See Product of a
series)
(See infinite series)
,
for binomial expansion



The following are useful approximations (using theta
notation):
for real c greater than −1
(See Harmonic
number)
for real c greater than 1
for nonnegative real
c
for nonnegative real c, d
for nonnegative real b > 1, c,
dSUM can refer to:
| This disambiguation page lists articles associated with the same title. If an internal link led you here, you may wish to change the link to point directly to the intended article. |
The sum of two numbers is what we get when we add the two numbers. There are a number of ways of writing sums, with the most common being:
Sigma notation is a mathematical notation to write long sums in a short way. Sigma notation uses the greek letter Sigma, , and takes upper and lower bounds which tell us where the sum begins and where it ends. The lower bound usually has a variable (called the index) given a value, such as "i=2". This tells us that the summation begins at 2, and goes up by 1 until it reaches the number on the top.
Sums are used to represent series and sequences. For example,
The geometric series of a repeating decimal can be represented in summation,
The concept of an integral is a limit of sums. The area under a shape being defined as:
|
|