[top][index]
search for:

isConstant RingElement -- test whether something is constant

Synopsis:

  • Usage: t = isConstant f
  • Function: isConstant -- test whether something is constant
  • Input:
  • f, an instance of class RingElement.
  • Output:
  • t, an instance of class Boolean: whether the polynomial f is constant
  • Code:

         -- ../../../Macaulay2/m2/enginering.m2:701
         isConstant RingElement := r -> r == 0 or all(degree r, i -> i === 0)

    [top][index]
    search for: