can_factor_by#

PolynomialFunction.can_factor_by(
var: Variable,
)[source]#

Check if a variable can be factored out of this polynomial

Parameters:

var (casm.bset.Variable) – Variable to be factored out.

Returns:

result – True if this polynomial can be factored by var; False otherwise.

Return type:

bool