Good point. I think you could use the standard python eval() instead of defining f. something like:
f = 'x**3+x-1'
x = 4
eval(f)
It should work fine. f = 'x**3+x-1'
x = 4
eval(f)
It should work fine.No comments yet.