class_docstr: A simple Monomial class to
  record the details of all variables
  that a typical monomial is composed of.
class_docstr_tok: ["A","simple","Monomial","class","to","record","the","details","of","all","variables","that","a","typical","monomial","is","composed","of","."]
docstr: Return True if two monomials
  are equal upto a scalar multiple.
docstr_tok: ["Return","True","if","two","monomials","are","equal","upto","a","scalar","multiple","."]
code: def __eq__(self, other) -> bool:
      """
      Return True if two monomials
      are equal upto a scalar multiple.
      """
      return self.equal_upto_scalar(other) and self.coeff == other.coeff
  
imports: from fractions import Fraction
  from typing import Dict, Union, Set, Iterable
  from numbers import Rational
  from functools import reduce
label_desc: Use image node_id 5 for calling the Monomial obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown