Sage Reference Manual: Monoids - Mirrors
Sage Reference Manual: Monoids - Mirrors
Sage Reference Manual: Monoids - Mirrors
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Monoids</strong>, Release 6.1.1<br />
list()<br />
Return (a reference to) the underlying list used to represent this element. If this is a monoid in an abelian<br />
monoid on n generators, then this is a list of nonnegative integers of length n.<br />
EXAMPLES:<br />
sage: F = FreeAbelianMonoid(5, ’abcde’)<br />
sage: (a, b, c, d, e) = F.gens()<br />
sage: a.list()<br />
[1, 0, 0, 0, 0]<br />
sage.monoids.free_abelian_monoid_element.is_FreeAbelianMonoidElement(x)<br />
Queries whether x is an object of type FreeAbelianMonoidElement.<br />
INPUT:<br />
•x – an object.<br />
OUTPUT:<br />
•True if x is an object of type FreeAbelianMonoidElement; False otherwise.<br />
12 Chapter 5. Abelian monoid elements