This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PolynomialQ

PolynomialQ[expr, var]
yields True if expr is a polynomial in var, and yields False otherwise.
PolynomialQ[expr, {var1, ...}]
tests whether expr is a polynomial in the vari.
  • The vari need not be symbols; PolynomialQ[f[a]+f[a]^2, f[a]] True.
Test whether an expression is a polynomial in the specified variable:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Test whether an expression is a polynomial in the specified set of variables:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 1