Macaulay2 » Documentation
Packages » Macaulay2Doc :: exponents
next | previous | forward | backward | up | index | toc

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

../../../../../Macaulay2/m2/monoids.m2:140:29-140:49: --source code:
exponents RingElement   := f -> first \ listForm f

See also

Ways to use exponents :

For the programmer

The object exponents is a method function.