Changeset 22c7f0 in git for libpolys


Ignore:
Timestamp:
Jul 17, 2013, 6:21:49 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
9713eea80d019296cc6a670a2d19b267b228d562
Parents:
891122532e023bc9e189b3dbd0e4d94bec28c798
Message:
fix: p_Content for Q_a
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r891122 r22c7f0  
    21272127      if (getCoeffType(r->cf)==n_algExt)
    21282128      {
    2129         number hzz = n_Init(1, r->cf->extRing->cf);
     2129        h = n_Init(1, r->cf->extRing->cf);
    21302130        p=ph;
    21312131        while (p!=NULL)
     
    21352135          while (c_n!=NULL)
    21362136          { // each monom: coeff in Q
    2137             d=n_Lcm(hzz,pGetCoeff(c_n),r->cf->extRing->cf);
    2138             n_Delete(&hzz,r->cf->extRing->cf);
    2139             hzz=d;
     2137            d=n_Lcm(h,pGetCoeff(c_n),r->cf->extRing->cf);
     2138            n_Delete(&h,r->cf->extRing->cf);
     2139            h=d;
    21402140            pIter(c_n);
    21412141          }
    21422142          pIter(p);
    21432143        }
    2144         /* hzz contains the 1/lcm of all denominators in c_n_n*/
    2145         h=n_Invers(hzz,r->cf->extRing->cf);
    2146         n_Delete(&hzz,r->cf->extRing->cf);
    2147         n_Normalize(h,r->cf->extRing->cf);
     2144        /* h contains the 1/lcm of all denominators in c_n_n*/
     2145        //n_Normalize(h,r->cf->extRing->cf);
    21482146        if(!n_IsOne(h,r->cf->extRing->cf))
    21492147        {
     
    25042502#endif
    25052503
    2506   poly start=p;
    25072504
    25082505  number d, h;
     
    25142511    assume( n_GreaterZero(pGetCoeff(p),C) );
    25152512    if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r);
    2516     return start;
     2513    return p;
    25172514  }
    25182515#endif
     
    25212518  {
    25222519    if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r);
    2523     return start;
     2520    return p;
    25242521  }
    25252522
     
    25472544    if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r);
    25482545
    2549     return start;
     2546    return p;
    25502547  }
    25512548
    25522549  assume(pNext(p)!=NULL);
     2550  poly start=p;
    25532551
    25542552#if 0 && CLEARENUMERATORS
Note: See TracChangeset for help on using the changeset viewer.