Пример #1
0
        /// <inheritdoc/>
        public bool Equals(SignedRational other)
        {
            var left  = new LongRational(this.Numerator, this.Denominator);
            var right = new LongRational(other.Numerator, other.Denominator);

            return(left.Equals(right));
        }
Пример #2
0
        /// <inheritdoc/>
        public bool Equals(Rational other)
        {
            LongRational left  = new LongRational(this.Numerator, this.Denominator);
            LongRational right = new LongRational(other.Numerator, other.Denominator);

            return(left.Equals(right));
        }