Changeset 22c7f0 in git
- Timestamp:
- Jul 17, 2013, 6:21:49 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 9713eea80d019296cc6a670a2d19b267b228d562
- Parents:
- 891122532e023bc9e189b3dbd0e4d94bec28c798
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r891122 r22c7f0 2127 2127 if (getCoeffType(r->cf)==n_algExt) 2128 2128 { 2129 number hzz= n_Init(1, r->cf->extRing->cf);2129 h = n_Init(1, r->cf->extRing->cf); 2130 2130 p=ph; 2131 2131 while (p!=NULL) … … 2135 2135 while (c_n!=NULL) 2136 2136 { // each monom: coeff in Q 2137 d=n_Lcm(h zz,pGetCoeff(c_n),r->cf->extRing->cf);2138 n_Delete(&h zz,r->cf->extRing->cf);2139 h zz=d;2137 d=n_Lcm(h,pGetCoeff(c_n),r->cf->extRing->cf); 2138 n_Delete(&h,r->cf->extRing->cf); 2139 h=d; 2140 2140 pIter(c_n); 2141 2141 } 2142 2142 pIter(p); 2143 2143 } 2144 /* hzz contains the 1/lcm of all denominators in c_n_n*/ 2145 h=n_Invers(hzz,r->cf->extRing->cf); 2146 n_Delete(&hzz,r->cf->extRing->cf); 2147 n_Normalize(h,r->cf->extRing->cf); 2144 /* h contains the 1/lcm of all denominators in c_n_n*/ 2145 //n_Normalize(h,r->cf->extRing->cf); 2148 2146 if(!n_IsOne(h,r->cf->extRing->cf)) 2149 2147 { … … 2504 2502 #endif 2505 2503 2506 poly start=p;2507 2504 2508 2505 number d, h; … … 2514 2511 assume( n_GreaterZero(pGetCoeff(p),C) ); 2515 2512 if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r); 2516 return start;2513 return p; 2517 2514 } 2518 2515 #endif … … 2521 2518 { 2522 2519 if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r); 2523 return start;2520 return p; 2524 2521 } 2525 2522 … … 2547 2544 if(!n_GreaterZero(pGetCoeff(p),C)) p = p_Neg(p,r); 2548 2545 2549 return start;2546 return p; 2550 2547 } 2551 2548 2552 2549 assume(pNext(p)!=NULL); 2550 poly start=p; 2553 2551 2554 2552 #if 0 && CLEARENUMERATORS
Note: See TracChangeset
for help on using the changeset viewer.