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 .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »