@Override public Generic selfSimplify() { return expressionValue(); }
@Nonnull @Override protected String formatUndefinedParameter(int i) { switch (i) { case 0: return "f(x)"; case 1: return "x"; default: return super.formatUndefinedParameter(i); } }
@Nullable public Operator get(@Nonnull String name, @Nonnull Generic[] parameters) { final Operator operator = super.get(name); if (operator == null) { return null; } else { if (operator.getMinParameters() <= parameters.length && operator.getMaxParameters() >= parameters.length) { return operator.newInstance(parameters); } else { return null; } } }
public boolean isConstant(Variable variable) { return !isIdentity(variable); }
@Override public Generic selfNumeric() { return numeric(); }
@Override public boolean isInCategory(@Nonnull Operator operator) { return !operator.isSystem(); } },
@Nonnull protected static Variable[] toVariables(@Nonnull Generic vector) throws NotVariableException { return toVariables((JsclVector) vector); }
@Nullable public Operator get(@Nonnull String name, @Nonnull Generic[] parameters) { final Operator operator = super.get(name); return operator == null ? null : operator.newInstance(parameters); }
@Nonnull public Operator parse(@Nonnull Parameters p, Generic previousSumElement) throws ParseException { int pos0 = p.getPosition().intValue(); final String operatorName = Identifier.parser.parse(p, previousSumElement); if (!valid(operatorName)) { ParserUtils.throwParseException(p, pos0, Messages.msg_3, operatorName); } final Operator operator = OperatorsRegistry.getInstance().get(operatorName); Operator result = null; if (operator != null) { final Generic parameters[] = ParserUtils.parseWithRollback(new ParameterListParser(operator.getMinParameters()), pos0, previousSumElement, p); result = OperatorsRegistry.getInstance().get(operatorName, parameters); if (result == null) { ParserUtils.throwParseException(p, pos0, Messages.msg_2, operatorName); } } else { ParserUtils.throwParseException(p, pos0, Messages.msg_3, operatorName); } assert result != null; return result; }
Locator.getInstance().getKeyboard().buttonPressed(operator.getName()); break;
@Nonnull public Generic derivative(Variable variable) { if (isIdentity(variable)) { return JsclInteger.valueOf(1); } else { return JsclInteger.valueOf(0); } }
@Nonnull @Override protected String formatUndefinedParameter(int i) { switch (i) { case 0: return "f(i)"; case 1: return "i"; case 2: return "from"; case 3: return "to"; default: return super.formatUndefinedParameter(i); } }
@Override public Generic selfElementary() { return expressionValue(); }
@Nonnull @Override protected String formatUndefinedParameter(int i) { switch (i) { case 0: return "f(i)"; case 1: return "i"; case 2: return "from"; case 3: return "to"; default: return super.formatUndefinedParameter(i); } }
result = parsePostfix(parsers, postfixFunction.expressionValue(), previousSumElement, parseParameters);
@Nonnull @Override protected String formatUndefinedParameter(int i) { switch (i) { case 0: return "f(x)"; case 1: return "x"; case 2: return "x_point"; case 3: return "order"; default: return super.formatUndefinedParameter(i); } }
@Nonnull @Override protected String formatUndefinedParameter(int i) { switch (i) { case 0: return "f(x)"; case 1: return "x"; case 2: return "a"; case 3: return "b"; default: return super.formatUndefinedParameter(i); } }