News for hackers. Stuff that matters.
Re:The Easy Way To Solve Equations In Python by jre on Wednesday January 16, 2013 @11:49AM (#5067595)
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

Re:The Easy Way To Solve Equations In Python by barakstout on Wednesday January 16, 2013 @11:55AM (#5067627)
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.