Correcting data by equation parameters
-
I have this
And I have variable name: x. I put to QLineEdit 1+x * 3
And script automatically calculate new value of x.
x = 1+x*3 -
Why are you using JS libraries with a deprecated Qt module when @mrjj linked a good C++ library that can do what you want? there are even examples that do basically what you want to do.
If you want something that would solve generic expressions (i.e. no numeric values involved). The issue becomes a lot more complicated and, you are probably better off using a service like Wolfram Alpha's API