jscl.math.function.Comparison 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.function;
import jscl.math.Generic;
import jscl.math.JSCLBoolean;
import jscl.math.NotIntegerException;
import jscl.math.NotIntegrableException;
import jscl.math.NumericWrapper;
import jscl.math.Variable;
public class Comparison extends Function {
int operator;
public Comparison(String name, Generic expression1, Generic expression2) {
super(name,new Generic[] {expression1,expression2});
for(int i=0;i=0;
case 5:
return n>0;
case 6:
return n==0;
default:
return false;
}
}
protected Variable newinstance() {
return new Comparison(name,null,null);
}
private static final String easo[]={"eq","neq","leq","lt","geq","gt","approx"};
}