Пример #1
0
        public static Polynomial operator-(Polynomial polynomial)
        {
            Polynomial ret = new Polynomial(polynomial);

            ret.NegateInplace();
            return(ret);
        }
Пример #2
0
        operator -(
            double n,
            Polynomial polynomial
            )
        {
            Polynomial ret = new Polynomial(polynomial);

            ret.NegateInplace();
            ret.AddInplace(n);
            return(ret);
        }
Пример #3
0
 NegateInplace()
 {
     numerator.NegateInplace();
 }
Пример #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;
 }
Пример #6
0
 public void NegateInplace()
 {
     numerator.NegateInplace();
 }