Exemplo n.º 1
0
        public static Rational operator/(Polynomial polynomial, Rational rational)
        {
            Rational ret = rational.Divide(polynomial);

            ret.InvertInplace();
            return(ret);
        }
Exemplo n.º 2
0
        public static Rational operator/(double n, Rational rational)
        {
            Rational ret = new Rational(rational);

            ret.InvertInplace();
            ret.MultiplyInplace(n);
            return(ret);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Stretch a the inverse of a rational with a real number quotient.
 /// </summary>
 public static Rational operator /(
     double n,
     Rational rational)
 {
     Rational ret = new Rational(rational);
     ret.InvertInplace();
     ret.MultiplyInplace(n);
     return ret;
 }