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; }
NegateInplace() { numerator.NegateInplace(); }