linearalgebra.symbolic
Class Inverse

java.lang.Object
  extended by linearalgebra.symbolic.AbstractUnknown
      extended by linearalgebra.symbolic.UnaryOperator
          extended by linearalgebra.symbolic.Inverse
All Implemented Interfaces:
SymbolicValue

public class Inverse
extends UnaryOperator


Field Summary
 
Fields inherited from interface linearalgebra.symbolic.SymbolicValue
ADDS, LEAF, MULT
 
Constructor Summary
Inverse(SymbolicValue v)
           
 
Method Summary
protected  double doOperation(double child)
           
 int getPrecedence()
          Returns an order-of-operations indicator.
 java.lang.String toString()
           
 
Methods inherited from class linearalgebra.symbolic.UnaryOperator
getChild, getChildCount, getNumericValue, setChild
 
Methods inherited from class linearalgebra.symbolic.AbstractUnknown
addParent, appendParenthesisString, contains, getParent, getParentCount, isNormal, removeParent, scale, subTreeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inverse

public Inverse(SymbolicValue v)
Method Detail

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.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

doOperation

protected double doOperation(double child)
Specified by:
doOperation in class UnaryOperator