Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » BasicList » RingElement » isUnit
next | previous | forward | backward | up | index | toc

isUnit -- whether a ring element is a unit

Description

i1 : R = QQ[z]/(z^2+1);
i2 : isUnit z

o2 = true
i3 : S = QQ[x,y]/(1-(x-1)*(y-1));
i4 : isUnit (x^2 - 2*x + 1)

o4 = true
i5 : isUnit x

o5 = false

Ways to use isUnit:

  • isUnit(Number)
  • isUnit(RingElement)
  • isUnit(ZZ)

For the programmer

The object isUnit is a method function.


The source of this document is in Macaulay2Doc/functions/isUnit-doc.m2:25:0.