# PolynomialExpressionQ PolynomialExpressionQ[expr,x]

gives True if expr is structurally a polynomial expression in x, and False otherwise.

PolynomialExpressionQ[expr,{x,y,}]

gives True if expr is structurally a polynomial expression in x,y,, and False otherwise.

PolynomialExpressionQ[expr,{x,y,},test]

gives True if expr is structurally a polynomial expression in x,y, with coefficients satisfying test, and False otherwise.

# Details • A polynomial expression in x,y, is an expression constructed with x,y,, and coefficients not containing x,y,, using Plus, Times and positive integer Power.
• PolynomialExpressionQ[expr, vars, NumericQ] tests whether expr is a polynomial expression in vars with numeric coefficients.

# Examples

open allclose all

## Basic Examples(3)

Test whether an expression is a polynomial in the specified variable:

Test whether an expression is a polynomial in the specified set of variables:

Test whether an expression is a polynomial with numeric coefficients:

## Scope(4)

Polynomial expressions may be partially factored:

Coefficients of polynomial expressions may involve arbitrary functions:

Variables need not be symbols:

Variables need not be independent of each other:

## Properties & Relations(5)

Expand represents polynomial expressions as sums of monomials:

Factor represents polynomial expressions as products of irreducible factors:

The factors are polynomial expressions:

A ratio of polynomial expressions is a rational expression:

Use RationalExpressionQ to test that the fraction is a rational expression:

Polynomial expressions represent analytic functions:

Use FunctionAnalytic to verify that f is analytic:

PolynomialQ attempts to find algebraic dependencies between expressions:

PolynomialExpressionQ is purely structural and disallows arithmetic expression variables: ## Possible Issues(2)

A non-polynomial expression may represent a polynomial function:

PolynomialExpressionQ is purely syntactic:

Syntactically, Sin[x] is a coefficient, free of Cos[x] and Tan[x]: