Esempio n. 1
0
        public static Rational operator-(Rational rational, double n)
        {
            Rational ret = new Rational(rational);

            ret.SubtractInplace(n);
            return(ret);
        }
Esempio n. 2
0
        public static Rational operator-(Rational rational, Polynomial polynomial)
        {
            Rational ret = new Rational(rational);

            ret.SubtractInplace(polynomial);
            return(ret);
        }
Esempio n. 3
0
 /// <summary>
 /// Subtract a real number from a rational.
 /// </summary>
 public static Rational operator -(
     Rational rational,
     double n)
 {
     Rational ret = new Rational(rational);
     ret.SubtractInplace(n);
     return ret;
 }
Esempio n. 4
0
 /// <summary>
 /// Subtract a polynomial from a rational.
 /// </summary>
 public static Rational operator -(
     Rational rational,
     Polynomial polynomial)
 {
     Rational ret = new Rational(rational);
     ret.SubtractInplace(polynomial);
     return ret;
 }