Ejemplo n.º 1
0
        public static Polynomial operator-(Polynomial polynomial)
        {
            Polynomial ret = new Polynomial(polynomial);

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

            ret.NegateInplace();
            ret.AddInplace(n);
            return(ret);
        }
Ejemplo n.º 3
0
 NegateInplace()
 {
     numerator.NegateInplace();
 }
Ejemplo n.º 4
0
		public static Polynomial 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;
 }
Ejemplo n.º 6
0
 public void NegateInplace()
 {
     numerator.NegateInplace();
 }