Esempio n. 1
0
File: Number.cs Progetto: nope/ioke
 public static Number Ratio(IntFraction val)
 {
     return new Number(val);
 }
Esempio n. 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()));
 }
Esempio n. 3
0
 public override Numeric neg()
 {
     return(IntFraction.neg(this));
 }
Esempio n. 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 ());
 }