public static Rational operator-(Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); return(ret); }
public static Rational operator-(double n, Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); ret.AddInplace(n); return(ret); }
public static Rational operator-(Polynomial polynomial, Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); ret.AddInplace(polynomial); return(ret); }
/// <summary> /// Negate a rational. /// </summary> public static Rational operator -(Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); return ret; }
/// <summary> /// Subtract a rational from a real number. /// </summary> public static Rational operator -( double n, Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); ret.AddInplace(n); return ret; }
/// <summary> /// Subtract a rational from a polynomial. /// </summary> public static Rational operator -( Polynomial polynomial, Rational rational) { Rational ret = new Rational(rational); ret.NegateInplace(); ret.AddInplace(polynomial); return ret; }