Changeset 52d480 in git
- Timestamp:
- Feb 28, 2012, 6:36:11 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- d8b0f69f9828897dca663d5bb516369b1b0ac64a
- Parents:
- d901095118d1ee38940016e9b6c108a54485ac2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
rd90109 r52d480 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id$ */5 6 4 /* 7 5 * ABSTRACT: interpreter: … … 189 187 WarnS("Set minpoly over non-transcendental ground field to 0?!"); 190 188 #endif 191 return FALSE; 192 } 193 194 189 return FALSE; 190 } 191 192 195 193 if ( !nCoeff_is_transExt(currRing->cf) ) 196 194 { … … 204 202 { 205 203 // return TRUE; 206 #ifndef NDEBUG 204 #ifndef NDEBUG 207 205 idhdl p = currRing->idroot; 208 206 … … 213 211 Print(p->String(TRUE)); PrintLn(); 214 212 p = p->next; 215 } 213 } 216 214 #endif 217 215 } 218 216 219 217 assume (currRing->idroot==NULL); 220 218 221 219 number p = (number)a->CopyD(NUMBER_CMD); 222 220 … … 225 223 n_Delete(&p, currRing); 226 224 227 225 228 226 if( nCoeff_is_transExt(currRing->cf) ) 229 227 { 230 #ifndef NDEBUG 228 #ifndef NDEBUG 231 229 WarnS("minpoly is already 0..."); 232 230 #endif … … 235 233 236 234 WarnS("cannot set minpoly to 0 / alg. extension?"); 237 235 238 236 // return TRUE; 239 237 } … … 247 245 killhdl2(currRing->idroot,&(currRing->idroot),currRing); 248 246 } 249 247 250 248 n_Normalize(p, currRing->cf); 251 249 252 250 AlgExtInfo A; 253 251 254 252 A.r = currRing->cf->extRing; // Use the same ground field! 255 253 A.i = idInit(1,1); 256 254 257 255 assume( DEN((fractionObject *)(p)) == NULL ); // minpoly must be a poly...!? 258 256 259 257 A.i->m[0] = NUM((fractionObject *)p); 260 258 … … 268 266 269 267 NUM((fractionObject *)p) = NULL; n_Delete(&p, currRing->cf); 270 268 271 269 coeffs new_cf = nInitChar(n_algExt, &A); 272 270 273 271 if (new_cf==NULL) 274 272 { … … 692 690 if (rField_is_Ring(currRing)) 693 691 { 694 int constIndex = idPosConstant(id); 695 if (constIndex != -1) 696 WerrorS("ideal contains constant; please modify ground field/ring instead"); 697 return TRUE; 692 if (idPosConstant(id) != -1) 693 { 694 WerrorS("constant in q-ideal; please modify ground field/ring instead"); 695 return TRUE; 696 } 698 697 } 699 698 #endif … … 1748 1747 { 1749 1748 case IDEAL_CMD: 1750 1749 case MODUL_CMD: 1751 1750 { 1752 1751 ideal F=idInit(1,1);
Note: See TracChangeset
for help on using the changeset viewer.