My problem is: I'd like to get the value of a variable by knowing a Calculation (: "x = 5*x - 20" -> x = 5)
My solution was just Bruteforcing, so I start at 0, and go one up and one down in each step, and check, if it works. It did, but of course that's really slow at float numbers. Over all I need a function like:
getVar(sCalculation ["x = 5*x - 20"], sVar ["x"]) --> 5
How would you do that? If you've got any questions, feel free to ask below: