Exemple #1
0
 public override Numeric divReversed(Numeric x)
 {
     if (! (x is RatNum))
         throw new ArgumentException ();
     return RatNum.divide ((RatNum)x, this);
 }
Exemple #2
0
 public override int compareReversed(Numeric x)
 {
     return RatNum.compare ((RatNum) x, this);
 }
Exemple #3
0
 public override Numeric addReversed(Numeric x, int k)
 {
     if (! (x is RatNum))
         throw new ArgumentException ();
     return RatNum.add ((RatNum)x, this, k);
 }
Exemple #4
0
 public virtual Numeric divReversed(Numeric x)
 {
     throw new ArgumentException ();
 }
Exemple #5
0
 public virtual int compareReversed(Numeric x)
 {
     throw new ArgumentException ();
 }
Exemple #6
0
 /** Calculate x+k&this. */
 public virtual Numeric addReversed(Numeric x, int k)
 {
     throw new ArgumentException ();
 }