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

isConstant -- whether a ring element is constant

Synopsis

Description

i1 : isConstant 3

o1 = true
i2 : QQ[a,b][x,y];
i3 : isConstant (x+a-x)

o3 = true
i4 : isConstant x

o4 = false

Code

../../../../../Macaulay2/m2/rings.m2:96:28-96:64: --source code:
isConstant RingElement := r -> liftable(r, coefficientRing ring r)

See also

Ways to use isConstant :

For the programmer

The object isConstant is a method function.