SciPy

numpy.polynomial.polynomial.Polynomial.has_sametype

method

Polynomial.has_sametype(self, other)[source]

Check if types match.

New in version 1.7.0.

Parameters:
other : object

Class instance.

Returns:
bool : boolean

True if other is same class as self