IsPolynomial( obj )
IsPolynomial
returns true
if obj, which can be an object of
arbitrary type, is a polynomial and false
otherwise. The function
will signal an error if obj is an unbound variable.
gap> IsPolynomial( 1 ); false gap> IsPolynomial( Indeterminate(Integers) ); true
GAP 3.4.4