|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jwo.utils.JWExpressionParser
Allows a mathematical expression to be parsed and evaluated.
Constructor Summary | |
JWExpressionParser(String expression)
Initialises the expression parser with the given expression. |
Method Summary | |
double |
evaluate(double x,
double y,
double z)
Evaluates the algebraic expression. |
static void |
main(String[] args)
Parses the given expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JWExpressionParser(String expression)
expression
- Expression to evaluate.Method Detail |
public static void main(String[] args)
args
- Command line arguments.public double evaluate(double x, double y, double z)
x
- Value for x;y
- Value for y;z
- Value for z;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |