Changeset 8fc55e2 in git
- Timestamp:
- Feb 11, 2009, 3:56:16 PM (14 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- c5d8ddb1112344ad68257ea0c296d5b17aee0433
- Parents:
- fb2a0c9a162edde64cee86932710bc946dd583dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/clapsing.cc
rfb2a0c r8fc55e2 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.3 2 2008-12-17 15:08:50Singular Exp $5 // $Id: clapsing.cc,v 1.33 2009-02-11 14:56:16 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 195 195 196 196 197 197 void out_cf(char *s1,const CanonicalForm &f,char *s2); 198 198 199 199 … … 259 259 #endif 260 260 { 261 262 261 bool b=isOn(SW_USE_QGCD); 262 if ( nGetChar()==1 ) On(SW_USE_QGCD); 263 263 CanonicalForm mipo=convSingTrFactoryP(((lnumber)currRing->minpoly)->z); 264 264 Variable a=rootOf(mipo); 265 265 CanonicalForm F( convSingAPFactoryAP( f,a ) ), G( convSingAPFactoryAP( g,a ) ); 266 266 res= convFactoryAPSingAP( gcd( F, G ) ); 267 267 if (!b) Off(SW_USE_QGCD); 268 268 } 269 269 } … … 971 971 #endif 972 972 libfac_interruptflag=0; 973 //else974 // L=Factorize(G, mipo);975 973 #else 976 974 WarnS("complete factorization only for univariate polynomials"); … … 1032 1030 if (with_exps!=1) (**v)[j] = J.getItem().exp(); 1033 1031 if (rField_is_Zp() || rField_is_Q()) /* Q, Fp */ 1032 { 1034 1033 //count_Factors(res,*v,f, j, convFactoryPSingP( J.getItem().factor() ); 1035 1034 res->m[j] = convFactoryPSingP( J.getItem().factor() ); 1035 } 1036 1036 #if 0 1037 1037 else if (rField_is_GF()) … … 1043 1043 if (v!=NULL) w=*v; 1044 1044 if (currRing->minpoly==NULL) 1045 count_Factors(res,w,j,ff,convFactoryPSingTrP( J.getItem().factor() )); 1045 { 1046 if(!count_Factors(res,w,j,ff,convFactoryPSingTrP( J.getItem().factor() ))) 1047 res->m[j]=pOne(); 1048 } 1046 1049 else 1047 count_Factors(res,w,j,ff,convFactoryAPSingAP( J.getItem().factor() )); 1050 { 1051 if (!count_Factors(res,w,j,ff,convFactoryAPSingAP( J.getItem().factor() ))) 1052 1053 res->m[j]=pOne(); 1054 } 1048 1055 } 1049 1056 }
Note: See TracChangeset
for help on using the changeset viewer.