CoCoA:Sum
From ApCoCoAWiki
Sum
the sum of the elements of a list
Description
This function returns the sum of the objects in the list L.
Example
Use R ::= Q[x,y]; Sum([3,x,y^2]); y^2 + x + 3 ------------------------------- Sum(1..40) = Bin(41,2); TRUE ------------------------------- Sum([<quotes>c</quotes>,<quotes>oc</quotes>,<quotes>oa</quotes>]); cocoa -------------------------------
Syntax
Product(L:List):OBJECT Sum(L:List):OBJECT
<type>ideal</type> <type>integer</type> <type>list</type> <type>matrix</type> <type>polynomial</type> <type>rat</type> <type>ratfun</type> <type>vector</type> <type>zmod</type>