PolynomialQ

Polynomial (SymPy, WMA)


PolynomialQ[expr]

returns True if expr is a polynomial and returns False otherwise.

PolynomialQ[expr, var]

returns True if expr is a polynomial in var, and returns False otherwise.

PolynomialQ[expr, {var1, ...}]

tests whether expr is a polynomial in the vari.

PolynomialQ with no explicit variable mentioned:

A number is a degenerate kind of polynomial:

The following is not a polynomial because y is raised to the power -1:

PolynomialQ using an expression and a single variable:

In the above, there were no negative powers for x. In the below when we check with respect to y, we do find y is raised to a negative power:

PolynomialQ using an expression and a list of variables:

Numerator
PowerExpand