- Timestamp:
- Sep 22, 2020, 12:17:21 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 43e965942ed162dbfe28732ca08d97ea1c3af395
- Parents:
- 96113da0c61c4c2fa7cd9360008b7bc558c1c7fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
r96113d r2b855d1 118 118 if (e!=0) 119 119 { 120 printf("* v(%d)",l);120 printf("*%c",'a'+l-1); 121 121 if (e!=1) printf("^%d",e); 122 122 } … … 561 561 { 562 562 F=CFFList(CFFactor(fz,1)); 563 F.insert(CFFactor(ic,1)); 563 564 } 564 565 else … … 759 760 760 761 //make monic 761 f1=f1 / LeadCoeff(f1);762 f1=f1 / leadcoeff; //leadcoeff==LeadCoeff(f1); 762 763 763 764 // factorize … … 774 775 #if !defined(HAVE_NTL) && !defined(HAVE_FLINT) 775 776 // char p, extension, univariate 776 F=FpFactorizeUnivariateCZ( f, false, 1, alpha, Variable() ); 777 CanonicalForm c=Lc(f); 778 CanonicalForm fc=f/c; 779 F=FpFactorizeUnivariateCZ( fc, false, 1, alpha, Variable() ); 780 F.insert (CFFactor (c, 1)); 777 781 #endif 778 782 }
Note: See TracChangeset
for help on using the changeset viewer.