numpy.polynomial.polynomial.Polynomial.has_samecoef

Polynomial.has_samecoef(other)[source]

Check if coefficients match.

New in version 1.6.0.

Parameters:
other : class instance

The other class must have the coef attribute.

Returns:
bool : boolean

True if the coefficients are the same, False otherwise.