operator -(
            Polynomial polynomial
            )
        {
            Polynomial ret = new Polynomial(polynomial);

            ret.NegateInplace();
            return(ret);
        }
        operator -(
            double n,
            Polynomial polynomial
            )
        {
            Polynomial ret = new Polynomial(polynomial);

            ret.NegateInplace();
            ret.AddInplace(n);
            return(ret);
        }
 /// <summary>
 /// Negate a polynomial.
 /// </summary>
 public static Polynomial operator -(
     Polynomial polynomial
     )
 {
     Polynomial ret = new Polynomial(polynomial);
     ret.NegateInplace();
     return ret;
 }
Ejemplo n.º 4
0
 NegateInplace()
 {
     numerator.NegateInplace();
 }