non/spire — pull request #112 by tixxit (2013-06-05 06:21:01+00:00)
Title: Use a better "rational GCD" for GCD of Rational and floating point number types.

This makes GCD for rationals match up with Mathematica. The GCD of 2 rational numbers p/q and r/s is gcd(p*s, r*q) / (q * s). This PR implements this for Rational, Float, Double, and BigDecimal, though being careful to be more efficient.