Sum

Calculates the sum of the elements in a list. You can calculate a partial sum by specifying the start and end indices.

Syntax

sum(List)
sum(List, Start index)
sum(List, Start index, End index)
sum(Matrix)
sum(Matrix, Start index)
sum(Matrix, Start index, End index)

Examples

Dynamic sum of arithmetic sequence

There are several ways to calculate the sum of numbers from 1 to n: using a list, a sigma expression, or a known formula. With the slider you can dynamically explore the results.

Sum, product and mean of quadratic roots

Statistics commands like sum, mean and product can be used with CAS too. Note how the mean of the roots matches the x-coordinate of the parabola's vertex.