Package ket.math.purpose

Examples of ket.math.purpose.Word


    setHold(true);
  }

  @Override
  public void buttonSetup() {
    Branch one = new Branch(Function.UNKNOWN, new Token(new Word("a")));
    Branch two = new Branch(Function.UNKNOWN, new Token(new Word("x")), new Token(new Word("y")));
    for (Function function : Function.OPERATORS) {
      if (Type.STRICT_INVERSES.contains(function)) { // Don't bother with asin etc.
        continue;
      }
      boolean symbolic = function instanceof SymbolicFunction;
View Full Code Here


    s.replace(common, new Branch(Function.MINUS, a, b));
  }

  public static void applyChainRule(Selection s, Branch common, Branch end, KnownArguments knownArguments) {
    // (derivative (f g) x) -> (times (derivative f g) (derivative g x))
    Token q = new Token(new Word("q")); // knownArguments.getUnusedVariable()
    Branch f = end.getParentBranch().cloneBranch();
    Argument g = Argument.cloneArgument(end);
    for (Argument a : new ArgumentVector(f, ArgumentVector.REVERSE_ITERATOR_ORDER)) { // exp(1+cos(x)) -> exp(q) @ q=1+cos(x)
      if (a.equals(g)) {
        a.replace(Argument.cloneArgument(q));
View Full Code Here

    getDocument().getSelection().replace(new Token((State) purpose));
  }

  @Override
  protected Purpose create(String name) {
    return new Word(name);
  }
View Full Code Here

TOP

Related Classes of ket.math.purpose.Word

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.