示例#1
0
 public static int CompareValues(RationalInfo r0, RationalInfo r1)
 {
     return(Powers.Compare(
                r0.rational.GetPrimePowers(),
                r1.rational.GetPrimePowers()
                ));
 }
示例#2
0
 //
 public static int CompareDistances(RationalInfo r0, RationalInfo r1)
 {
     return(r0.distance.CompareTo(r1.distance));
 }