jhplot.math.exp4j
Interface Calculable

All Known Implementing Classes:
PostfixExpression

public interface Calculable

This is the basic result class of the exp4j ExpressionBuilder


Method Summary
 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
 

Method Detail

eval

double eval()
calculate the result of the expression

Returns:
the result of the calculation

getExpression

String getExpression()
return the expression in reverse polish postfix notation

Returns:
the expression used to construct this Calculable

setVariable

void setVariable(String name,
                 double value)
set a variable value for the calculation

Parameters:
name - the variable name
value - the value of the variable


jHepWork 3.2 ©