Пример #1
0
        operator -(ComplexRational rational)
        {
            ComplexRational ret = new ComplexRational(rational);

            ret.NegateInplace();
            return(ret);
        }
Пример #2
0
        operator -(
            ComplexPolynomial polynomial,
            ComplexRational rational)
        {
            ComplexRational ret = new ComplexRational(rational);

            ret.NegateInplace();
            ret.AddInplace(polynomial);
            return(ret);
        }
Пример #3
0
 /// <summary>
 /// Negate a rational.
 /// </summary>
 public static ComplexRational operator -(ComplexRational rational)
 {
     ComplexRational ret = new ComplexRational(rational);
     ret.NegateInplace();
     return ret;
 }
Пример #4
0
 /// <summary>
 /// Subtract a rational from a polynomial.
 /// </summary>
 public static ComplexRational operator -(
     ComplexPolynomial polynomial,
     ComplexRational rational)
 {
     ComplexRational ret = new ComplexRational(rational);
     ret.NegateInplace();
     ret.AddInplace(polynomial);
     return ret;
 }