linearalgebra.symbolic
Class Addition
java.lang.Object
linearalgebra.symbolic.AbstractUnknown
linearalgebra.symbolic.PairOperator
linearalgebra.symbolic.Addition
- All Implemented Interfaces:
- SymbolicValue
public class Addition
- extends PairOperator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Addition
public Addition(SymbolicValue a,
SymbolicValue b)
getPrecedence
public int getPrecedence()
- Description copied from interface:
SymbolicValue
- Returns an order-of-operations indicator. Lower numbers mean lower
precedence. This does not influence the execution order of the tree.
It was originally intended to allow the tree to insert parenthesis
when printing itself.
doOperation
protected final double doOperation(double left,
double right)
- Specified by:
doOperation
in class PairOperator
getOperator
protected final java.lang.String getOperator()
- Specified by:
getOperator
in class PairOperator
createNewInstance
protected PairOperator createNewInstance(SymbolicValue left,
SymbolicValue right)
- Specified by:
createNewInstance
in class PairOperator