News for hackers. Stuff that matters.
Re:The Easy Way To Solve Equations In Python by nnnnnnnninnnnnn on Wednesday January 16, 2013 @10:54AM (#5067307)
See http://sympy.org/en/index.html. I've been using this for a while.
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.
Re:The Easy Way To Solve Equations In Python by barakstout on Wednesday January 16, 2013 @10:58AM (#5067335)
That is a very good option. Thanks!
Re:The Easy Way To Solve Equations In Python by tlarkworthy on Wednesday January 16, 2013 @01:08PM (#5068119)
I was hoping for a sympy tutorial when I clicked
Re:The Easy Way To Solve Equations In Python by barakstout on Wednesday January 16, 2013 @09:51PM (#5070654)
I am sure that can be arranged in the future, if one doesn't exist already.