[GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, master, updated. release_1-4-0-235-g3d09388

Richard B. Kreckel git at ginac.de
Tue Nov 23 21:54:16 CET 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GiNaC -- a C++ library for symbolic computations".

The branch, master has been updated
       via  3d09388a8ea144a19949c216fae43ccba92e47aa (commit)
      from  079c558d4f9758cd2777a2808a02d64cb1f70c8e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3d09388a8ea144a19949c216fae43ccba92e47aa
Author: Alexei Sheplyakov <alexei.sheplyakov at gmail.com>
Date:   Tue Nov 23 17:45:52 2010 +0100

    [bugfix] chinrem_gcd: handle polynomials over rationals properly.
    
    * extract_integer_content():
      integer_content() can also return a rational number, e.g if the expression
      is a polynomial over rationals (in this case expr/content is polynomial
      over integers with integer content being 1). Therefore check if
      integer_content() is really an integer (and if it's not just return 1,
      GCD for polynomials over a field is defined up to arbitrary element of
      the field).
    
      This fixes possible segfault when computing GCD of polynomials over
      rationals (this is not theoretical, see the added test case).
    
    Thanks to Ernst Moritz Hahn for reporting this bug.

-----------------------------------------------------------------------

Summary of changes:
 check/bugme_chinrem_gcd.cpp |   18 ++++++++++++++++--
 ginac/polynomial/mgcd.cpp   |   10 ++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)


hooks/post-receive
--
GiNaC -- a C++ library for symbolic computations


More information about the GiNaC-devel mailing list