listForm f
A monomial is represented by the list of its exponents. A polynomial is represented by lists of pairs (m, c)x, one for each term, where m is a list of exponents for monomial, and c is the coefficient.


../../../../../../../Macaulay2/m2/orderedmonoidrings.m2:111:29116:63: source code:
listForm RingElement := (f) > (
R := ring f;
n := numgens R;
k := coefficientRing R;
(cc,mm) := rawPairs(raw k, raw f);
toList apply(cc, mm, (c,m) > (exponents(n,m), promote(c,k))))
The object listForm is a method function.