is_polynomial

Function is_polynomial 

Source
pub fn is_polynomial(expr: &Expression, _var: &Symbol) -> bool
Expand description

Check if expression is a polynomial in the given variable

Polynomial: only var, constants, +, *, and non-negative integer powers.