next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: listForm

listForm -- convert to list form

Description

listForm f -- converts a polynomial or monomial to a form represented by nested lists.

A monomial is represented by the list of its exponents.

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

i1 : R = ZZ/101[x,y,z];
i2 : listForm (x^2 - 7 + x*y*z^11 + y)

o2 = {({1, 1, 11}, 1), ({2, 0, 0}, 1), ({0, 1, 0}, 1), ({0, 0, 0}, -7)}

o2 : List

Ways to use listForm :