12 ms·
I've been using sympy to automate some derivative computation and I loved it. I found the evalf[1] function to be really helpful as it helps bridge the gap betw
by jre 14y ago
I've been using sympy to automate some derivative computation and I loved it. I found the evalf[1] function to be really helpful as it helps bridge the gap between the symbolic and numeric world.
[1] http://docs.sympy.org/dev/modules/evalf.html http://docs.sympy.org/dev/modules/evalf.html
- barakstout 14y agoGood 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.