PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Testing Expressions
>
Built-in
Mathematica
Symbol
Putting Constraints on Patterns
Finding the Structure of a Polynomial
Tutorials »
|
Collect
Series
Variables
Exponent
CoefficientList
See Also »
|
Testing Expressions
More About »
PolynomialQ
PolynomialQ
[
expr
,
var
]
yields
True
if
expr
is a polynomial in
var
, and yields
False
otherwise.
PolynomialQ
[
expr
, {
var
1
,
...
}]
tests whether
expr
is a polynomial in the
var
i
.
MORE INFORMATION
The
var
i
need not be symbols;
PolynomialQ[f[a]+f[a]^2, f[a]]
True
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Test whether an expression is a polynomial in the specified variable:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Test whether an expression is a polynomial in the specified set of variables:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
SEE ALSO
Collect
Series
Variables
Exponent
CoefficientList
TUTORIALS
Putting Constraints on Patterns
Finding the Structure of a Polynomial
MORE ABOUT
Testing Expressions
New in 1
© 2008 Wolfram Research, Inc.