(self, other: Union[int, float, Fraction])
return self.__mul__(o)
Compute the division between two monomials
        or a monomial and some other datatype
        like int/float/Fraction.
Compute the division between two monomials
        or a monomial and some other datatype
        like int/float/Fraction.
Compute the division between two monomials or a monomial and some other datatype like int / float / Fraction .
def __truediv__(self, other: Union[int, float, Fraction]):
        """
        Compute the division between two monomials
        or a monomial and some other datatype
        like int/float/Fraction.
        """
        if isinstance(other, int) or isinstance(other, float) or isinstance(other, Fraction):
            mono = {i: self.variables[i] for i in self.variables}
            if other == 0:
                raise ValueError('Cannot divide by 0.')
            return Monomial(mono, Monomial._rationalize_if_possible(self.coeff / other)).clean()

        o = other.inverse()
        return self.__mul__(o)
def __truediv__ ( self , other : Union [ int , float , Fraction ] ) : if isinstance ( other , int ) or isinstance ( other , float ) or isinstance ( other , Fraction ) : mono = { i : self . variables [ i ] for i in self . variables } if other == 0 : raise ValueError ( 'Cannot divide by 0.' ) return Monomial ( mono , Monomial . _rationalize_if_possible ( self . coeff / other ) ) . clean ( ) o = other . inverse ( ) return self . __mul__ ( o )