SymPy is a symbolic manipulation package, written in pure Python. Its aim is to become a full featured CAS in Python, while keeping the code as simple as possible in order to be comprehensible and easily extensible.
Homepage: http://sympy.org/
Source Code: http://github.com/sympy/sympy
Mailing list: https://groups.google.com/forum/?fromgroups#!forum/sympy
Examples
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t')
>>> k, m, n = symbols('k m n', integer=True)>>> integrate(exp(x)*x**2, x) β 2 β x βx - 2β x + 2β β β―
>>> expand((x + y)**3)
3 2 2 3
x + 3β
x β
y + 3β
xβ
y + y
>>> factor(_)
3
(x + y)>>> Sum((-1)**n*x**n/factorial(n), (n, 0, oo)) β ____ β² β² n n β² (-1) β x β± ββββββββ β± n! β± βΎβΎβΎβΎ n = 0 >>> _.doit() -x β―
