sympy/sympy — pull request #2652 by skirpichev (2013-12-05 14:17:39+00:00)
Title: Fix Add.flatten when terms have S.NaN

See github's issue #2633