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). Of course, most polynomials are neither even nor odd.

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