public interface Calculable
ExpressionBuilder| Modifier and Type | Method and Description |
|---|---|
double |
eval()
calculate the result of the expression
|
String |
getExpression()
return the expression in reverse polish postfix notation
|
void |
setVariable(String name,
double value)
set a variable value for the calculation
|
double eval()
String getExpression()
Calculablevoid setVariable(String name, double value)
name - the variable namevalue - the value of the variablejHepWork 3.5 ©