]> www.ginac.de Git - ginac.git/commit
[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.
authorAlexei Sheplyakov <alexei.sheplyakov@gmail.com>
Fri, 3 Dec 2010 23:36:50 +0000 (00:36 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 3 Dec 2010 23:36:50 +0000 (00:36 +0100)
commit00507499530d90533cf029bd503be326d9018138
tree23f4feacdb48d5d16e8a8293d1848e80030a1695
parentf0fb303711b4334ce59f7da63bfa7cb49f46265f
[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.

This patch fixes a silly typo and makes chinrem_gcd work correctly with
polynomials which are "almost" (up to an integer coefficient) relatively
prime.

Thanks to Ernst Moritz Hahn for a bug report and a test case.
check/bugme_chinrem_gcd.cpp
ginac/polynomial/mgcd.cpp