示例#1
0
文件: Number.cs 项目: nope/ioke
 public static Number Ratio(IntFraction val)
 {
     return new Number(val);
 }
示例#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()));
 }
示例#3
0
 public override Numeric neg()
 {
     return(IntFraction.neg(this));
 }
示例#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 ());
 }