Examples of VariableState


Examples of ket.math.purpose.VariableState

   */
  public VariableState functionToState(Function function) {
    if (function==null) return null;
    if (function instanceof SymbolicFunction) {
      SymbolicFunction symbolicFunction = (SymbolicFunction) function;
      VariableState state = null;
      if (symbolicFunction.isPrefixOnly()) {
        state = (VariableState) symbolicFunction.getPrefix();
        addState(state);
      } else {
        Ket.out.println(" !!! The only functions that can be converted to variables are prefix-only !!! ");
View Full Code Here

Examples of ket.math.purpose.VariableState

    replacement.setParent(this);
  }

  public VariableToken asVariableToken(KnownArguments knownArguments) {
    Function function = this.getFunction();
    VariableState state = knownArguments.functionToState(function);
    if (state==null) {
      state = new Word(function.getName());
    }
    return new VariableToken(state);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.