sympy/sympy — pull request #1906 by cheatiiit (2013-03-18 00:00:30+00:00)
Title: Updated Heurisch.py

Reduced the number of permutations of mapping by not generating cases where mapping[-1] != x