Class SubNode


public class SubNode extends OpNode
A node of an expression tree, represented by the symbol "-".
  • Constructor Details

  • Method Details

    • eval

      public double eval(VarMap v, FuncMap f)
      Subtracts the evaluation of the right side from the evaluation of the left side and returns the result.
      Specified by:
      eval in class Expression
    • getSymbol

      public String getSymbol()
      Description copied from class: OpNode
      Returns the text symbol that represents the operation.
      Specified by:
      getSymbol in class OpNode