Changeset e0af3ef in git
- Timestamp:
- Jul 18, 2012, 9:44:06 PM (11 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- 8a30b16f7366d41b6243988673b9dc25cb0da4a5
- Parents:
- faa1b8d6e411251ef4c85b56aefa21b74f5db582
- git-author:
- Martin Lee <martinlee84@web.de>2012-07-18 21:44:06+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-09-04 17:25:37+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facBivar.cc
rfaa1b8d re0af3ef 645 645 } 646 646 647 A *= bCommonDen (A); 647 648 A= A (y + evaluation, y); 648 649 … … 723 724 } 724 725 726 On (SW_RATIONAL); 727 A *= bCommonDen (A); 728 Off (SW_RATIONAL); 729 725 730 factors= factorRecombination (uniFactors, A, MODl, degs, 1, 726 731 uniFactors.length()/2, b); -
factory/facFqBivar.cc
rfaa1b8d re0af3ef 269 269 return CFList(); 270 270 } 271 if (F.inCoeffDomain()) 272 return CFList(); 271 273 272 274 Variable alpha= info.getAlpha(); … … 478 480 return CFList (); 479 481 } 482 if (F.inCoeffDomain()) 483 return CFList(); 480 484 if (degs.getLength() <= 1 || factors.length() == 1) 481 485 { … … 492 496 (mod (b(LC (F, 1)*prodMod (factors, N)),N)/Lc (mod (b(LC (F, 1)*prodMod (factors, N)),N)) == F/Lc(F))); 493 497 #endif 498 494 499 CFList T, S; 495 500 … … 513 518 bool recombination= false; 514 519 CanonicalForm test; 515 bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || getCharacteristic() > 0; 520 bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || 521 getCharacteristic() > 0; 516 522 if (!isRat) 517 523 On (SW_RATIONAL); … … 519 525 if (!isRat) 520 526 Off (SW_RATIONAL); 521 buf0= buf(0,x)*LCBuf;522 527 while (T.length() >= 2*s && s <= thres) 523 528 { … … 584 589 recombination= true; 585 590 result.append (g); 586 buf= quot; 591 if (b.getp() != 0) 592 buf= quot*bCommonDen (quot); 593 else 594 buf= quot; 587 595 LCBuf= LC (buf, x); 588 596 T= Difference (T, S); … … 703 711 CanonicalForm buf= F; 704 712 Variable x= Variable (1); 705 CanonicalForm LCBuf= LC (buf, x);706 713 CanonicalForm g, quot; 707 714 CanonicalForm M= power (F.mvar(), deg); … … 711 718 if (!isRat) 712 719 On (SW_RATIONAL); 720 if (b.getp() != 0) 721 buf *= bCommonDen (buf); 722 CanonicalForm LCBuf= LC (buf, x); 713 723 CanonicalForm buf0= mulNTL (buf (0,x), LCBuf); 714 724 CanonicalForm buf1= mulNTL (buf (1,x), LCBuf); … … 746 756 reconstructedFactors.append (g); 747 757 factorsFoundIndex[l]= 1; 748 buf= quot; 758 if (b.getp() != 0) 759 buf= quot*bCommonDen(quot); 760 else 761 buf= quot; 749 762 d -= degree (g); 750 763 LCBuf= LC (buf, x); … … 762 775 if (bufDegs1.getLength() <= 1) 763 776 { 764 reconstructedFactors.append (buf); 777 if (!buf.inCoeffDomain()) 778 reconstructedFactors.append (buf); 765 779 break; 766 780 } … … 858 872 if (bufDegs1.getLength() <= 1) 859 873 { 860 buf= buf (y - eval, y); 861 buf /= Lc (buf); 862 appendMapDown (reconstructedFactors, buf, info, source, dest); 874 if (!buf.inCoeffDomain()) 875 { 876 buf= buf (y - eval, y); 877 buf /= Lc (buf); 878 appendMapDown (reconstructedFactors, buf, info, source, dest); 879 } 863 880 break; 864 881 }
Note: See TracChangeset
for help on using the changeset viewer.