java.lang.Object
exptree.operators.division
- All Implemented Interfaces:
- operatorInterface, java.io.Serializable
- public class division
- extends java.lang.Object
- implements operatorInterface, java.io.Serializable
Divides two expressionTrees.
This particular application expects all inputs and outputs on the expressionTree
to be bound to [-1.0,1.0], so this function is not actually natural division.
The method used to bind the results to [-1.0,1.0] may not be optimal.
- Version:
- 1.1 08/19/2000
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
division
public division()
evaluate
public double evaluate(exptree.expressionTree[] params)
- Perform the operation.
- Specified by:
evaluate in interface operatorInterface
getName
public java.lang.String getName()
- Returns the operator's name.
- Specified by:
getName in interface operatorInterface
init
public void init()
- Performs any initialization the operator requires.
- Specified by:
init in interface operatorInterface
getNumberOfParameters
public int getNumberOfParameters()
- Returns the number of parameters expected by the operator.
- Specified by:
getNumberOfParameters in interface operatorInterface