Changeset 1374bc in git for libpolys/polys/ext_fields/transext.cc
- Timestamp:
- Nov 23, 2011, 3:29:54 PM (12 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- da6ad4f6a78a843c8fb63f7d9e3cfa84d075fdd7
- Parents:
- 8fee8407b328f6852dc1ff5372e3f43552ca5fe4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r8fee84 r1374bc 138 138 assume(NUM(t) != NULL); /**< t != 0 ==> numerator(t) != 0 */ 139 139 p_Test(NUM(t), ntRing); 140 if (!DENIS1(t)) p_Test(DEN(t), ntRing); 140 if (!DENIS1(t)) 141 { 142 p_Test(DEN(t), ntRing); 143 if(p_IsConstant(DEN(t),ntRing) && (n_IsOne(pGetCoeff(DEN(t)),ntRing->cf))) 144 { 145 Print("?/1 in %s:%d\n",f,l); 146 return FALSE; 147 } 148 } 141 149 return TRUE; 142 150 } … … 561 569 fraction result = (fraction)omAlloc0Bin(fractionObjectBin); 562 570 NUM(result) = g; 563 DEN(result) = f; 571 if (!p_IsConstant(f,ntRing) || !n_IsOne(pGetCoeff(f),ntRing->cf)) 572 DEN(result) = f; 564 573 COM(result) = COM(fa) + COM(fb) + MULT_COMPLEXITY; 565 574 heuristicGcdCancellation((number)result, cf);
Note: See TracChangeset
for help on using the changeset viewer.