/* Check whether this RationalNumber is equal to another RationalNumber. RationalNumbers are equal when all requirements for arithmetic equalty of RationalNumbers are met. returns: True if the given RationalNumbers are equal, False otherwise */ bool RationalNumber::equal(const RationalNumber &another) const { RationalNumber a = this->normalize(); RationalNumber b = another.normalize(); return (a.m_nominator == b.m_nominator && a.m_denominator == b.m_denominator); }