Hello
For example, I have math expression: 21+5*(e^(-1))+log(8)-9-(2^3)/6
exp = Expression("21+5*(e^(-1))+log(8)-9+(2^3)/6").eval().toString();
I know the following:
a = 21
b = 5*(e^(-1))
c = log(8)-9
d = (2^3)/6
Ideally, I want to evaluate the expression using variable names: a+b+c-d
exp = Expression(a+b+c-d).eval().toString();
I know it is not currently possible to use variables in eval expression.
I wonder if I somehow skip symbols like this: 'a:'+21+'b:'+5*(e^(-1))+'c:'+log(8)-9+'d:'+(2^3)/6
Could you please let me know your thoughts.
Thank You