Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Sum of a series (sum)

Sum of an expression over one or more ranges.

How to write it

sum(f, k = a..b)

The sum over the range.

f
The expression or function to work on. Takes an expression.
k = a..b
The index and its bounds; a bound may be inf. Takes a variable with its range.

sum(f, i = a..b, j = a..b)

A double sum.

f
The expression or function to work on. Takes an expression.
i = a..b
The first index and its range. Takes a variable with its range.
j = a..b
The second index and its range. Takes a variable with its range.

Examples

  • ∑k=110k=55\displaystyle \sum_{k=1}^{10} k = 55
    sum(k, k = 1..10)

    In the solver, sum(k, k = 1..10) gives 55.

    Open in the solver
  • ∑k=1∞1k2=π26\displaystyle \sum_{k=1}^{\infty} \frac{1}{k^{2}} = \frac{\pi^{2}}{6}
    sum(1/k^2, k = 1..inf)

    In the solver, sum(1/k^2, k = 1..inf) gives pi^2/6.

    Open in the solver
  • ∑i=13∑j=13ij=36\displaystyle \sum_{i=1}^{3} \sum_{j=1}^{3} i j = 36
    sum(i*j, i = 1..3, j = 1..3)

    In the solver, sum(i*j, i = 1..3, j = 1..3) gives 36.

    Open in the solver
  • sum_convergence

    Test whether the sum of an expression over a variable converges.

  • numeric_sum

    Add up an expression over a range, as a decimal.

  • series_coefficient

    The coefficient of the term of a given order in the series of an expression.

  • differences

    The differences between neighbouring elements of a list.

  • series

    Series expansion of an expression about a point.

  • find_linear_recurrence

    The recurrence a list of terms obeys, given only when it also holds on two more.