Package com.graphbuilder.math
Class DivNode
java.lang.Object
com.graphbuilder.math.Expression
com.graphbuilder.math.OpNode
com.graphbuilder.math.DivNode
A node of an expression tree, represented by the symbol "/".
-
Field Summary
Fields inherited from class com.graphbuilder.math.OpNode
leftChild, rightChildFields inherited from class com.graphbuilder.math.Expression
parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.graphbuilder.math.OpNode
getLeftChild, getRightChild, setLeftChild, setRightChildMethods inherited from class com.graphbuilder.math.Expression
checkBeforeAccept, getFunctionNames, getParent, getVariableNames, isDescendent, toString
-
Constructor Details
-
DivNode
-
-
Method Details
-
eval
Divides the evaluation of the left side by the evaluation of the right side and returns the result.- Specified by:
evalin classExpression
-
getSymbol
Description copied from class:OpNodeReturns the text symbol that represents the operation.
-