[singular] 07/09: 439: factorize() returns wrong constant

felix salfelder felix-guest at alioth.debian.org
Tue Sep 3 20:24:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master-3-1-5
in repository singular.

commit 622961fcdb1c5f17be2260b8be5c36d85825660b
Author: Felix Salfelder <felix at salfelder.org>
Date:   Tue Sep 3 21:56:53 2013 +0200

    439: factorize() returns wrong constant
---
 factory/facBivar.h     |    4 ++--
 factory/facFactorize.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/factory/facBivar.h b/factory/facBivar.h
index cabdff8..2d8531e 100644
--- a/factory/facBivar.h
+++ b/factory/facBivar.h
@@ -183,7 +183,7 @@ ratBiFactorize (const CanonicalForm & G,         ///< [in] a bivariate poly
       {
         for (CFFListIterator i= result; i.hasItem(); i++)
         {
-          LcF /= bCommonDen (i.getItem().factor());
+          LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
           i.getItem()= CFFactor (i.getItem().factor()*
                        bCommonDen(i.getItem().factor()), i.getItem().exp());
         }
@@ -215,7 +215,7 @@ ratBiFactorize (const CanonicalForm & G,         ///< [in] a bivariate poly
     {
       for (CFFListIterator i= result; i.hasItem(); i++)
       {
-        LcF /= bCommonDen (i.getItem().factor());
+        LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
         i.getItem()= CFFactor (i.getItem().factor()*
                      bCommonDen(i.getItem().factor()), i.getItem().exp());
       }
diff --git a/factory/facFactorize.h b/factory/facFactorize.h
index 5ccfe16..95bfa66 100644
--- a/factory/facFactorize.h
+++ b/factory/facFactorize.h
@@ -136,7 +136,7 @@ ratFactorize (const CanonicalForm& G,          ///<[in] a multivariate poly
     {
       for (CFFListIterator i= result; i.hasItem(); i++)
       {
-        LcF /= bCommonDen (i.getItem().factor());
+        LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
         i.getItem()= CFFactor (i.getItem().factor()*
                      bCommonDen(i.getItem().factor()), i.getItem().exp());
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/singular.git



More information about the debian-science-commits mailing list