Changeset 9b10a76 in git for kernel/polys.cc
- Timestamp:
- Jul 23, 2007, 4:01:27 PM (16 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 5d7a3b71b24413b5b1944dd621e4da4cb4a50320
- Parents:
- b529d9012a2f0139b1d63038125da10ba6fd7f90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys.cc
rb529d9 r9b10a76 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.2 3 2007-07-23 13:58:56 SingularExp $ */4 /* $Id: polys.cc,v 1.24 2007-07-23 14:01:27 motsak Exp $ */ 5 5 6 6 /* … … 228 228 if (((unsigned long)i) > r->bitmask) 229 229 { 230 230 // exponent to large: it is not a monomial 231 231 p_DeleteLm(&rc,r); 232 232 return s_save; … … 246 246 else 247 247 { 248 // in super-commutative ring 249 // squares of anti-commutative variables are zeroes! 250 if(rIsSCA(r)) 251 { 252 const unsigned int iFirstAltVar = scaFirstAltVar(r); 253 const unsigned int iLastAltVar = scaLastAltVar(r); 254 255 assume(rc != NULL); 256 257 for(unsigned int k = iFirstAltVar; k <= iLastAltVar; k++) 258 if( p_GetExp(rc, k, r) > 1 ) 259 { 260 p_DeleteLm(&rc, r); 261 goto finish; 262 } 263 } 264 248 265 p_Setm(rc,r); 249 266 } 267 finish: 250 268 return s; 251 269 }
Note: See TracChangeset
for help on using the changeset viewer.