sympy/sympy — pull request #1505 by smichr (2012-08-22 10:30:50+00:00)
Title: Float handles gcd and lcm

The general gcd and lcm are written in polys and are tuned to handle
polys. But there are some cases that should be handled before handing
off the calculation to polys: the leading coefficients of Muls and the
case of pure Numbers are now handled first.