jscl.math.operator.Remainder 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.operator;
import jscl.math.Generic;
import jscl.math.Variable;
public class Remainder extends Operator {
public Remainder(Generic expression1, Generic expression2) {
super("rem",new Generic[] {expression1,expression2});
}
public Generic compute() {
return parameter[0].remainder(parameter[1]);
}
protected Variable newinstance() {
return new Remainder(null,null);
}
}