self._coefficients[symbol] = coefficient
if isinstance(constant, Rational):
constant = constant.constant
if not isinstance(constant, numbers.Rational):
self._coefficients[symbol] = coefficient
if isinstance(constant, Rational):
constant = constant.constant
if not isinstance(constant, numbers.Rational):