Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
::
sum(Set)
next
|
previous
|
forward
|
backward
| up |
index
|
toc
sum(Set) -- sum of elements
Synopsis
Function:
sum
Description
sum v
yields the sum of the elements in the set
v
.
i1 : a = set{1,100,10000} o1 = set {1, 100, 10000} o1 : Set
i2 : sum a o2 = 10101
See also
sum
-- compute the sum
Ways to use this method:
sum(Set)
-- sum of elements