Changeset 1e579c6 in git for kernel/kutil.cc
- Timestamp:
- Jun 20, 2007, 11:39:25 AM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 07e8ae3b1877436cb95506c90d799438d558c703
- Parents:
- f7aaec31bd73e9e5b3b2bd84ee5ff4fab2de4691
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
rf7aaec3 r1e579c6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.5 8 2007-05-24 10:02:43 wienand Exp $ */4 /* $Id: kutil.cc,v 1.59 2007-06-20 09:39:23 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1055 1055 pSetm(Lp.lcm); 1056 1056 assume(!strat->sugarCrit); 1057 if (pHasNotCF(p,strat->S[i]) && nIs One(nGcd(0, pGetCoeff(p), currRing)) && nIsOne(nGcd(0, pGetCoeff(strat->S[i]), currRing)))1057 if (pHasNotCF(p,strat->S[i]) && nIsUnit(pGetCoeff(p)) && nIsUnit(pGetCoeff(strat->S[i]))) 1058 1058 { 1059 1059 #ifdef KDEBUG … … 1245 1245 #endif 1246 1246 1247 voidenterOneStrongPoly (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1)1248 { 1249 longd, s, t;1247 BOOLEAN enterOneStrongPoly (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1) 1248 { 1249 number d, s, t; 1250 1250 assume(i<=strat->sl); 1251 1251 LObject Lp; 1252 1252 poly m1, m2, erg, gcd; 1253 1253 1254 XGCD(d, s, t, (long) pGetCoeff(p), (long) pGetCoeff(strat->S[i])); 1255 1254 d = nExtGcd(pGetCoeff(p), pGetCoeff(strat->S[i]), &s, &t); 1255 1256 if (nIsOne(d) || nIsZero(s) || nIsZero(t)) 1257 { 1258 nDelete(&d); 1259 nDelete(&s); 1260 nDelete(&t); 1261 return FALSE; 1262 } 1256 1263 1257 1264 k_GetStrongLeadTerms(p, strat->S[i], currRing, m1, m2, gcd, strat->tailRing); 1258 1265 1259 pSetCoeff0(m1, nInit(s));1260 pSetCoeff0(m2, nInit(t));1261 pSetCoeff0(gcd, nInit(d));1266 pSetCoeff0(m1, s); 1267 pSetCoeff0(m2, t); 1268 pSetCoeff0(gcd, d); 1262 1269 1263 1270 … … 1323 1330 enterL(&strat->L,&strat->Ll,&strat->Lmax,h,posx); 1324 1331 } 1332 return TRUE; 1325 1333 } 1326 1334 #endif … … 2600 2608 { 2601 2609 // Print("j:%d, Ll:%d\n",j,strat->Ll); 2602 if (((unsigned long) pGetCoeff(h) % (unsigned long) pGetCoeff(strat->S[j]) != 0) &&2603 ((unsigned long) pGetCoeff(strat->S[j]) % (unsigned long) pGetCoeff(h) != 0))2604 { 2605 new_pair=TRUE;2606 enterOneStrongPoly(j,h,ecart,isFromQ,strat, atR);2610 // if (((unsigned long) pGetCoeff(h) % (unsigned long) pGetCoeff(strat->S[j]) != 0) && 2611 // ((unsigned long) pGetCoeff(strat->S[j]) % (unsigned long) pGetCoeff(h) != 0)) 2612 { 2613 if (enterOneStrongPoly(j,h,ecart,isFromQ,strat, atR)) 2614 new_pair=TRUE; 2607 2615 } 2608 2616 } … … 2728 2736 assume (rField_is_Ring(currRing)); 2729 2737 // enter also zero divisor * poly, if this is non zero and of smaller degree 2730 enterExtendedSpoly(h, strat);2738 if (!(rField_is_Domain(currRing))) enterExtendedSpoly(h, strat); 2731 2739 initenterpairsRing(h, k, ecart, 0, strat, atR); 2732 2740 initenterstrongPairs(h, k, ecart, 0, strat, atR);
Note: See TracChangeset
for help on using the changeset viewer.