Beispiel #1
0
 public static Number Ratio(IntFraction val)
 {
     return new Number(val);
 }
Beispiel #2
0
 public static IntFraction neg(IntFraction x)
 {
     // If x is normalized, we do not need to call RatNum.make to normalize.
     return(new IntFraction(IntNum.neg(x.numerator()), x.denominator()));
 }
Beispiel #3
0
 public override Numeric neg()
 {
     return(IntFraction.neg(this));
 }
Beispiel #4
0
 public static IntFraction neg(IntFraction x)
 {
     // If x is normalized, we do not need to call RatNum.make to normalize.
     return new IntFraction (IntNum.neg (x.numerator()), x.denominator ());
 }