JSci.maths.symbolic.Negative Maven / Gradle / Ivy
package JSci.maths.symbolic;
import JSci.maths.*;
import JSci.maths.fields.*;
import JSci.maths.groups.*;
import java.util.*;
class Negative extends Expression {
private final Expression arg;
public Negative(Expression arg) {
this.arg=arg;
}
public String toString() {
String r = "-";
if (arg.getPriority()