Changeset 320ca6 in git
- Timestamp:
- May 5, 2014, 4:51:48 PM (10 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e3cdb4839932af176f7bc54e157f8c427bd81b25
- Parents:
- 844dcf092b230992c12b6f9bf2cc9b41371a7a53
- git-author:
- Martin Lee <martinlee84@web.de>2014-05-05 16:51:48+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2014-05-12 14:35:02+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfCharSets.cc
r844dcf r320ca6 1050 1050 } 1051 1051 1052 CFList 1053 removeContent (const CFList & PS, StoreFactors & StoredFactors) 1054 { 1055 CFListIterator i= PS; 1056 if ((!i.hasItem()) || (PS.getFirst().level() == 0 )) 1057 return PS; 1058 1059 CFList output; 1060 CanonicalForm cc,elem; 1061 1062 for (; i.hasItem(); i++) 1063 { 1064 elem= i.getItem(); 1065 cc= content (elem, elem.mvar()); 1066 if (cc.level() > 0 ) 1067 { 1068 output.append (elem / cc); 1069 StoredFactors.FS1 = Union (CFList (cc), StoredFactors.FS1); 1070 } 1071 else 1072 output.append(elem); 1073 } 1074 return output; 1075 } 1052 1076 1053 1077 static bool … … 1445 1469 { 1446 1470 nr += 1; 1447 if (degree (i.getItem()) > 1)1471 if (degree (i.getItem()) > 1) 1448 1472 { 1449 1473 qs= factorize (i.getItem()); … … 1452 1476 } 1453 1477 else 1454 qs= CFFList (CFFactor (i.getItem(),1));1478 qs= CFFList (CFFactor (i.getItem(), 1)); 1455 1479 1456 1480 if ((qs.length() >= 2 ) || (qs.getFirst().exp() > 1)) … … 1477 1501 { // search for a non linear elem 1478 1502 qs= newfactoras (i.getItem(), as, success); 1503 if (qs.getFirst().factor().inCoeffDomain()) 1504 qs.removeFirst(); 1479 1505 if (qs.length() > 1 || qs.getFirst().exp() > 1) 1480 1506 { //found elem is reducible … … 1531 1557 StoreFactors StoredFactors; 1532 1558 cs= charSetViaModCharSet (qs, StoredFactors); 1533 1534 //cs = removeContent (cs, StoredFactors); //do I really need it 1559 cs= removeContent (cs, StoredFactors); 1560 1535 1561 factorset= StoredFactors.FS1; 1536 1562
Note: See TracChangeset
for help on using the changeset viewer.