Example #1
0
 Equals(
     Polynomial polynomial1,
     Polynomial polynomial2
     )
 {
     if (polynomial1 == null)
     {
         return(polynomial2 == null);
     }
     return(polynomial1.Equals(polynomial2));
 }
Example #2
0
		public static bool Equals(Polynomial polynomial1, Polynomial polynomial2)
		{
			return polynomial1.Equals(polynomial2);
		}
        Equals(
            Polynomial polynomial1,
            Polynomial polynomial2
            )
        {
            if(polynomial1 == null)
            {
                return polynomial2 == null;
            }

            return polynomial1.Equals(polynomial2);
        }
Example #4
0
 public bool Equals(Rational rational)
 {
     return(numerator.Equals(rational.numerator) && denominator.Equals(rational.denominator));
 }
Example #5
0
 public static bool Equals(Polynomial polynomial1, Polynomial polynomial2)
 {
     return(polynomial1.Equals(polynomial2));
 }
 Equals(Rational rational)
 {
     return(_numerator.Equals(rational._numerator) &&
            _denominator.Equals(rational._denominator));
 }