def __eq__(self, other):
    try:
        return ((self.F == other.F) and (self.coef == other.coef))
    except:
        return False
def __eq__(self, other):
    try:
        return ((self.F == other.F) and (self.coef == other.coef))
    except:
        return False