Changeset e0047d in git


Ignore:
Timestamp:
Aug 30, 2012, 1:50:27 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
bf4c6ef72e2d8a1ee598aebcb4ca4ca73a2f2efa
Parents:
c5230d1466985a6275693ea38409e2f5641a6e6e
git-author:
Martin Lee <martinlee84@web.de>2012-08-30 13:50:27+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-09-05 15:00:01+02:00
Message:
fix: minor bug in evaluationWRTDifferentSecondVar
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqFactorize.cc

    rc5230d1 re0047d  
    17441744  CFListIterator iter;
    17451745  bool preserveDegree= true;
    1746   int j;
     1746  Variable x= Variable (1);
     1747  int j, degAi, degA1= degree (A,1);
    17471748  for (int i= A.level(); i > 2; i--)
    17481749  {
     
    17511752    iter= evaluation;
    17521753    preserveDegree= true;
     1754    degAi= degree (A,i);
    17531755    for (j= A.level(); j > 1; j--, iter++)
    17541756    {
     
    17591761        tmp= tmp (iter.getItem(), j);
    17601762        tmp2.insert (tmp);
    1761         if ((degree (tmp, i) != degree (A, i)) ||
    1762             (degree (tmp, 1) != degree (A, 1)))
     1763        if ((degree (tmp, i) != degAi) ||
     1764            (degree (tmp, 1) != degA1))
    17631765        {
    17641766          preserveDegree= false;
    17651767          break;
    17661768        }
    1767         if (!content(tmp).inCoeffDomain() || !content(tmp,1).inCoeffDomain())
    1768         {
    1769           preserveDegree= false;
    1770           break;
    1771         }
    1772       }
    1773     }
     1769      }
     1770    }
     1771    if (!content(tmp,1).inCoeffDomain())
     1772      preserveDegree= false;
     1773    if (!(gcd (deriv (tmp,x), tmp)).inCoeffDomain())
     1774      preserveDegree= false;
    17741775    if (preserveDegree)
    17751776      Aeval [i - 3]= tmp2;
Note: See TracChangeset for help on using the changeset viewer.