next | previous | forward | backward | up | top | index | toc | Macaulay2 website
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

Code

../../../../../../../Macaulay2/m2/enginering.m2:671:29-671:65: --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.