News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.