com.rychlik.calculator
Class StackMachine.Sub
java.lang.Object
|
+--com.rychlik.calculator.StackMachine.MathFunction
|
+--com.rychlik.calculator.StackMachine.BinaryMathFunction
|
+--com.rychlik.calculator.StackMachine.Sub
- All Implemented Interfaces:
- java.io.Serializable, StackMachine.Instruction
- Enclosing class:
- StackMachine
- public class StackMachine.Sub
- extends StackMachine.BinaryMathFunction
Describe class Sub here.
- See Also:
- Serialized Form
Method Summary |
double |
eval(double x,
double y)
Describe eval method here. |
java.lang.String |
getName()
Describe getName method here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackMachine.Sub
public StackMachine.Sub()
eval
public double eval(double x,
double y)
- Describe
eval method here.
- Specified by:
eval in class StackMachine.BinaryMathFunction
- Parameters:
x - a double valuey - a double value
- Returns:
- a
double value
getName
public java.lang.String getName()
- Describe
getName method here.
- Specified by:
getName in class StackMachine.MathFunction
- Returns:
- a
String value
|