public abstract class StackMachine.BinaryMathFunction extends StackMachine.MathFunction
BinaryMathFunction here.| Constructor and Description |
|---|
StackMachine.BinaryMathFunction() |
| Modifier and Type | Method and Description |
|---|---|
int |
arity()
Describe
arity method here. |
abstract double |
eval(double x,
double y)
Describe
eval method here. |
void |
execute()
Describe
execute method here. |
getName, writepublic int arity()
arity method here.int valuepublic void execute()
throws ParseException
execute method here.ParseException - if an error occurspublic abstract double eval(double x,
double y)
eval method here.x - a double valuey - a double valuedouble value