Python library for working with simple equations
clp2 at rebertia.com
Thu Feb 18 10:17:42 CET 2010
On Thu, Feb 18, 2010 at 1:09 AM, lallous <lallous at lgwm.org> wrote:
> Is there is any Python library that allow such things:
> Given a string expression as: x + 5 + x * (y + 2), any library that
> can develop the equation for example.
> Or if we say factor with "x" then it renders the expression with x *
> ( rest of expression ).
> There could be a functionality where when x,y are given then the
> expression can be evaluated.
> If there are two expressions, they can be added and the symbols
> Does such a thing exist?
They're called computer algebra systems:
SymPy is one for Python:
Don't know if it supports factoring specifically; I've never used it,
I just have Google-Fu.
More information about the Python-list