SciPy

numpy.polynomial.polynomial.Polynomial.has_samecoef

method

Polynomial.has_samecoef(self, 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.