standardForm f
A polynomial is represented by hash tables in which the keys are hash tables representing the monomials and the values are the coefficients. The monomials themselves are represented by hash tables in which the keys are the variables and the values are the corresponding exponents.


../../../../../../../Macaulay2/m2/orderedmonoidrings.m2:94:3398:83: source code:
standardForm RingElement := (f) > (
R := ring f;
k := coefficientRing R;
(cc,mm) := rawPairs(raw k, raw f);
new HashTable from toList apply(cc, mm, (c,m) > (standardForm m, new k from c)))
The object standardForm is a method function.