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/monoids.m2:144:32148:82: 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.