Changeset 2e7132 in git
 Timestamp:
 Apr 29, 2013, 11:37:21 AM (10 years ago)
 Branches:
 (u'jengelhdatetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
 Children:
 ccb904bb634d071cbadd5d11141c512313839b46
 Parents:
 3c2c9540b63c2f11ed9fe4817807c8b3e5034318
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libpolys/polys/ext_fields/transext.cc
r3c2c95 r2e7132 183 183 number n=pGetCoeff(p); 184 184 n_Test(n,ntCoeffs); 185 if ((!(SR_HDL(n) & SR_INT))&&(n>s==0)) 186 /* not normalized, just do for the following test*/ 187 { 188 n_Normalize(pGetCoeff(p),ntCoeffs); 189 n=pGetCoeff(p); 190 } 185 191 if (!(SR_HDL(n) & SR_INT)) 186 192 { … … 988 994 then both the numerator and the denominator will be divided by the 989 995 GCD of the a_alpha's and the c_beta's (if this GCD is != 1), 990 (3) if 'a' is  e.g. after having performed steps (1) and (2)  of the991 form992 (sum_alpha a_alpha * t^alpha)993 994 c995 with integers a_alpha, and c != 1, then 'a' will be replaced by996 (sum_alpha a_alpha/c * t^alpha);997 996 this procedure does not alter COM(f) (this has to be done by the 998 997 calling procedure); … … 1004 1003 assume(!DENIS1(f)); 1005 1004 1006 if (!p_IsConstant(DEN(f), ntRing))1007 1005 { /* step (1); see documentation of this procedure above */ 1008 1006 p_Normalize(NUM(f), ntRing); … … 1038 1036 } 1039 1037 n_Delete(&lcmOfDenominators, ntCoeffs); 1040 if ( !p_IsConstant(DEN(f), ntRing))1038 if (DEN(f)!=NULL) 1041 1039 { /* step (2); see documentation of this procedure above */ 1042 1040 p = NUM(f); … … 1072 1070 n_Delete(&gcdOfCoefficients, ntCoeffs); 1073 1071 } 1074 }1075 if (p_IsConstant(DEN(f), ntRing) &&1076 (!n_IsOne(p_GetCoeff(DEN(f), ntRing), ntCoeffs)))1077 { /* step (3); see documentation of this procedure above */1078 number inverseOfDen = n_Invers(p_GetCoeff(DEN(f), ntRing), ntCoeffs);1079 NUM(f) = p_Mult_nn(NUM(f), inverseOfDen, ntRing);1080 n_Delete(&inverseOfDen, ntCoeffs);1081 p_Delete(&DEN(f), ntRing);1082 DEN(f) = NULL;1083 1072 } 1084 1073
Note: See TracChangeset
for help on using the changeset viewer.