sympy/sympy — pull request #1560 by mrocklin (2012-10-06 22:17:34+00:00)
Title: Introduce rewrite rules

This introduces basic rewrite rules and strategies to SymPy.

It also uses these rewrite rules to refactor the MatrixExpressions module