up previous next
checks if a ringelem is in the coefficient ring
IsConstant(X: RINGELEM): BOOL |
This function tests whether the value of a RINGELEM of a polynomial ring
actually lies in the image of the coefficient ring. It is equivalent to
checking that the degree in each indeterminate is 0.
/**/ QQx ::= QQ[x];
/**/ Use QQx[y,z];
/**/ IsConstant(y+1);
false
/**/ IsConstant(x+1);
true
|