Learn SymPy
Symbolic mathematics in pure Python: algebra, calculus and exact arithmetic
SymPy is a computer algebra system written in pure Python. It manipulates mathematical expressions symbolically: it simplifies, expands and factors them, solves equations, differentiates and integrates, works with exact rationals and radicals, and generates numeric code from the results. Engineers, scientists and students use it to derive formulas, check algebra and turn hand calculations into fast NumPy or C code.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know