I need a library to be able to parse an equation an give me the result giving the inputs.
For example something like this:
String equation = "5 = 6 / z";
EquationSolver solver = new EquationSolver(equation);
double result = solver.getResult();
System.out.println("result: " + result);
And evaluates to: 6/5
Is there any kind of library for java that can do that for me? Basically I need the program to isolate the single unknown variable in an arbitrary equation...
Thanks Thomas