up previous next
IsEvenPoly, IsOddPoly    --    test whether a polynomial is even or odd as a function


Syntax
IsEvenPoly(F: RINGELEM): BOOL
IsOddPoly(F: RINGELEM): BOOL

Description
These functions test whether a polynomial is even or odd (as a function). Note that it is possible for a function to be neither even nor odd.

Example
/**/  use QQ[x];
/**/  f := x^2+1;
/**/  IsEvenPoly(f);
true
/**/  IsOddPoly(x*f);
true
/**/  IsEvenPoly(f+x);
false