Needed, symbolic math in Python

Fernando Perez fperez528 at
Sat Jun 12 16:51:47 CEST 2004

Paul Rubin wrote:

> I wonder if anyone can recommend any simple symbolic algebra modules
> in Python.  I just need to do some straightforward polynomial
> arithmetic, no fancy calculus or special functions anything like that.
> But I do need arbitrary precision rational coefficients in the
> polynomials.  Thanks.

If _all_ you need are simple arithmetic operations on polynomials, then just go
for a package with rational numbers (GMP has python wrappers).  A polynomial is
just a vector of coefficients, and Numeric accepts vectors of any object type
(so you get convenient syntax).



More information about the Python-list mailing list