com.rychlik.calculator
Class StackMachine.Negate
java.lang.Object
|
+--com.rychlik.calculator.StackMachine.MathFunction
|
+--com.rychlik.calculator.StackMachine.UnaryMathFunction
|
+--com.rychlik.calculator.StackMachine.Negate
- All Implemented Interfaces:
- java.io.Serializable, StackMachine.Instruction
- Enclosing class:
- StackMachine
- public class StackMachine.Negate
- extends StackMachine.UnaryMathFunction
Describe class Negate here.
- See Also:
- Serialized Form
Method Summary |
double |
eval(double x)
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.Negate
public StackMachine.Negate()
eval
public double eval(double x)
- Describe
eval method here.
- Specified by:
eval in class StackMachine.UnaryMathFunction
- Parameters:
x - 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
|