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