예제 #1
0
        public static Rational operator/(Polynomial polynomial, Rational rational)
        {
            Rational ret = rational.Divide(polynomial);

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

            ret.InvertInplace();
            ret.MultiplyInplace(n);
            return(ret);
        }
예제 #3
0
파일: Rational.cs 프로젝트: rmaalmeida/NNCG
 /// <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;
 }