next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: exponents

exponents -- the exponents of a polynomial

Synopsis

Description

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

o2 = {{1, 1, 11}, {2, 0, 0}, {0, 1, 0}, {0, 0, 0}}

o2 : List
i3 : leadMonomial f

          11
o3 = x*y*z

o3 : R
i4 : exponents leadMonomial f

o4 = {{1, 1, 11}}

o4 : List

Code

/usr/share/Macaulay2/Core/orderedmonoidrings.m2:38:30-38:65: --source code:
exponents RingElement := (f) -> listForm f / ( (monom,coeff) -> monom )

See also

Ways to use exponents :

For the programmer

The object exponents is a method function.