Difference between revisions of "Sum Command"

From GeoGebra Manual
Jump to: navigation, search
(create official page from pdf)
 
(create official page from pdf)
Line 1: Line 1:
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 +
{{command|statistics}}
 
; Sum[List]: Calculates the sum of all list elements.
 
; Sum[List]: Calculates the sum of all list elements.
 
: Note: This command works for numbers, points, vectors, text, and functions.
 
: Note: This command works for numbers, points, vectors, text, and functions.

Revision as of 14:45, 4 November 2010


Sum[List]
Calculates the sum of all list elements.
Note: This command works for numbers, points, vectors, text, and functions.

Examples:

  • Sum[{1, 2, 3}] gives you a number a = 6.
  • Sum[{x^2, x^3}] gives you f(x) = x2 + x3.
  • Sum[Sequence[i,i,1,100]] gives you a number a = 5050.
  • Sum[{(1, 2), (2, 3)}] gives you a point A = (3, 5).
  • Sum[{(1, 2), 3}] gives you point B = (4, 2).
  • Sum[{"a","b","c"}] gives you the text "abc".
Sum[List, Number n of Elements]
Calculates the sum of the first n list elements.
Note: This command works for numbers, points, vectors, text, and functions.
Example: Sum[{1, 2, 3, 4, 5, 6}, 4] gives you the number a = 10.
© 2021 International GeoGebra Institute