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

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

See also

Ways to use isConstant :

Code

../../m2/enginering.m2:595:29-595:65: --source code:
isConstant RingElement := r -> liftable(r, coefficientRing ring r)