Changeset 03c1d2 in git
- Timestamp:
- Sep 9, 2015, 1:59:11 PM (8 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 4d031cda72b3385df1b0e2f8f2b790e31626ceb6
- Parents:
- b6c5b9ea35189a34db58f51d1b3bb752d8b73338c65b73309b230b264308140a3c68d8cf161955a0
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfCharSets.cc
rb6c5b9e r03c1d2 546 546 qs= facAlgFunc2 (i.getItem(), as); 547 547 if (qs.length() > 0) 548 549 548 { 549 if (qs.getFirst().factor().inCoeffDomain()) 550 550 qs.removeFirst(); 551 551 if (qs.length() > 1 || qs.getFirst().exp() > 1) … … 555 555 break; 556 556 } 557 557 } 558 558 } 559 559 } -
factory/facAlgFuncUtil.cc
rb6c5b9e r03c1d2 203 203 { 204 204 ASSERT (F.deriv().isZero(), "derivative of F is not zero"); 205 int termCount=0;206 205 CFIterator i= F; 206 int g= 0; 207 207 for (; i.hasTerms(); i++) 208 { 209 if (i.exp() != 0) 210 termCount++; 211 } 212 213 int j= 1; 214 i= F; 215 for (;j < termCount; j++, i++) 216 ; 217 218 int exp= i.exp(); 208 g= igcd (g, i.exp()); 209 219 210 int count= 0; 220 211 int p= getCharacteristic(); 221 while (( exp >= p) && (exp != 0) && (exp% p == 0))222 { 223 exp/= p;212 while ((g >= p) && (g != 0) && (g % p == 0)) 213 { 214 g /= p; 224 215 count++; 225 216 }
Note: See TracChangeset
for help on using the changeset viewer.