sympy/sympy — pull request #7825 by smichr (2014-08-05 16:20:50+00:00)
Title: 7619: fix recursion error on nested Min

Alternatively, instead of checking that the there was no AppliedUndef,
if the expression involving the Min were denested as 2*Min(a,b)->Min(2*a,2*b)
the recursion error would not have occured, either...but one might not
want the unnested expression.