Imagine I have the following String: "10*x = 20"
How would I get x using Java? I am looking for something like:
String str = "10*x = 20";
int x = Integer.parseInt( str.solve("x") ) //==> 2;
It should also work for equations like:
10-x+y = 5 //x = 10+y-5
4x = 8y //y = 2x
...
Is there any function, or an easy way to automatically solve equations like these?
EDIT: I would also be happy with a way, to use the Python SymPy solve feature using Java.