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

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

/home2/dan/src/M2/M2/Macaulay2/m2/enginering.m2:664:29-664:65: --source code:
isConstant RingElement := r -> liftable(r, coefficientRing ring r)