jscl.math.polynomial.groebner.Sugar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jscl Show documentation
Show all versions of jscl Show documentation
java symbolic computing library and mathematical editor
The newest version!
package jscl.math.polynomial.groebner;
import java.util.Comparator;
class Sugar implements Comparator {
public static final Comparator comparator=new Sugar();
private Sugar() {}
public int compare(Pair pa1, Pair pa2) {
if(pa1.sugarpa2.sugar) return 1;
else return pa1.compareTo(pa2);
}
public int compare(Object o1, Object o2) {
return compare((Pair)o1,(Pair)o2);
}
}