Changeset d12f186 in git for libpolys/polys/ext_fields


Ignore:
Timestamp:
Jul 7, 2011, 11:18:50 AM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
44d898208ddc75d14a68b3bf09b8a1971b2ee1f6
Parents:
6c19d854882ab99fd19b9b972a32606106c2f2ee
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-07-07 11:18:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:12+01:00
Message:
bug in coeffs.h, removing nested fractions in ext. fields over Q
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r6c19d8 rd12f186  
    591591  if (!p_IsConstant(DEN(f), ntRing))
    592592  { /* step (1); see documentation of this procedure above */
     593    p_Normalize(NUM(f), ntRing);
     594    p_Normalize(DEN(f), ntRing);
    593595    number lcmOfDenominators = n_Init(1, ntCoeffs);
    594596    number c; number tmp;
     
    616618    { /* multiply NUM(f) and DEN(f) with lcmOfDenominators */
    617619      NUM(f) = p_Mult_nn(NUM(f), lcmOfDenominators, ntRing);
     620      p_Normalize(NUM(f), ntRing);
    618621      DEN(f) = p_Mult_nn(DEN(f), lcmOfDenominators, ntRing);
     622      p_Normalize(DEN(f), ntRing);
    619623    }
    620624    n_Delete(&lcmOfDenominators, ntCoeffs);
     
    646650                                                     ntCoeffs);
    647651        NUM(f) = p_Mult_nn(NUM(f), inverseOfGcdOfCoefficients, ntRing);
     652        p_Normalize(NUM(f), ntRing);
    648653        DEN(f) = p_Mult_nn(DEN(f), inverseOfGcdOfCoefficients, ntRing);
     654        p_Normalize(DEN(f), ntRing);
    649655        n_Delete(&inverseOfGcdOfCoefficients, ntCoeffs);
    650656      }
Note: See TracChangeset for help on using the changeset viewer.