cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Using the Summation Function

Started ‎11-08-2022 by
Modified ‎11-08-2022 by
View Fullscreen Exit Fullscreen

One special case of iteration is the algebraic sum. The Summation function requires three arguments. The first argument is evaluated before the summation begins. It's generally used to initialize a counter or index variable. The second argument specifies a limit for the counter or index. And the third argument is the quantity to be added to the sum. For example, calling the Summation function with the first argument assigning to i, the second argument of and the third argument of i returns the sum of all the integers from to So this is equivalent to a For loop that initializes i to runs as long as i is less than or equal to and increases i by each step, while the body of the for loop would increase the variable s by the value of i at each step.