Functions and operators should use toString in EntitiesFragment

This commit is contained in:
serso
2016-01-31 10:23:57 +01:00
parent 6d7e75d94b
commit 1fe67e9183
5 changed files with 37 additions and 35 deletions

View File

@@ -15,25 +15,7 @@ abstract class PostfixFunction extends Operator {
}
public String toString() {
final StringBuilder result = new StringBuilder();
/*try {*/
result.append(formatParameter(0));
/*} catch (NotIntegerException e) {
try {
final Variable v = parameters[0].variableValue();
if (v instanceof Frac || v instanceof Pow) {
result.append(GenericVariable.valueOf(parameters[0]));
} else {
result.append(v);
}
} catch (NotVariableException e2) {
result.append(GenericVariable.valueOf(parameters[0]));
}
}*/
result.append(getName());
return result.toString();
return formatParameter(0) + getName();
}
public final Generic numeric() {