indexedp.spad line 12 [edit on github]
This category represents the product of some set with respect to an indexing set. The set S is considered as the ``basis elements'' and the elements from A as ``coefficients''. Elements may have infinite support. For Comparable (ordered) S we assume that support of each element is well-orderd.
construct(l) takes a list of terms and creates the object with these components. First components of elements of l should be different.
constructOrdered(l) takes a list of terms and creates the object with these components. The list is assumed to be sorted (in reverse order) with respect to the ordering of S. If R is a monoid, then the list is assumed to contain no zero elements. Caution: No checking is performed, so this should only be used in cases where those conditions are assured. If in doubt use construct.
leadingCoefficient(z) returns the coefficient of the leading (with respect to the ordering on the indexing set) monomial of z. Error: if z has no support.
leadingMonomial(x) returns the monomial supported by the first element from S. Error: if x has no support.
leadingSupport(z) returns the index of leading (with respect to the ordering on the indexing set) monomial of z. Error: if z has no support.
leadingTerm(x) returns the leading (with respect to the ordering on the indexing set) term of z. Error: if z has no support.
map(f, z) returns the new element created by applying the function f to each component of the direct product element z.
monomial(a, s) constructs a direct product element with the s component set to a
monomial?(x) returns true if x is a single monomial, that is support of x consists of a single element.
reductum(z) returns a new element created by removing the leading coefficient/support pair from the element z. Error: if z has no support.