ForElement(x, S) declares the variable x just like For(x) and additionally tells the parent operator that
is to range over the elements of the set . Examples: Set(Mul(2, n), ForElement(n, ZZ)) becomes . Sum(Div(1, Pow(n, 2)), ForElement(n, SetMinus(ZZ, Set(0)))) becomes .
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
ZZ | Integers | |
Sum | Sum | |
Pow | Power |
Source code for this entry:
Entry(ID("978576"), SymbolDefinition(ForElement, Ellipsis, "Generator for all the elements of a set"), Description(SourceForm(ForElement(x, S)), "declares the variable", SourceForm(x), "just like", SourceForm(For(x)), "and additionally tells the parent operator", "that", x, "is to range over the elements of the set", S, ". ", "Examples: ", SourceForm(Set(Mul(2, n), ForElement(n, ZZ))), "becomes", Set(Mul(2, n), ForElement(n, ZZ)), ". ", SourceForm(Sum(Div(1, Pow(n, 2)), ForElement(n, SetMinus(ZZ, Set(0))))), "becomes", Sum(Div(1, Pow(n, 2)), ForElement(n, SetMinus(ZZ, Set(0)))), ". "))