Class DivNode


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

  • Method Details

    • eval

      public double eval(VarMap v, FuncMap f)
      Divides the evaluation of the left side by the evaluation of the right 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