Changeset edfe71 in git for Singular/LIB/standard.lib
- Timestamp:
- Oct 20, 2005, 3:13:53 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 50cce796a85aab0e31358748ad1b9f754dac9e03
- Parents:
- 836dc0ed2d2275fe2390d2d8d1b51ae6998669b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r836dc0e redfe71 1 1 ////////////////////////////////////////////////////////////////////////////// 2 version="$Id: standard.lib,v 1.7 3 2005-09-27 16:52:57Singular Exp $";2 version="$Id: standard.lib,v 1.74 2005-10-20 13:13:53 Singular Exp $"; 3 3 category="Miscellaneous"; 4 4 info=" … … 249 249 return(std(i)); 250 250 } 251 251 252 //if ordering is global, there are parameters and minpoly is 0 252 253 if (((npars(basering)>0) &&(minpoly==0)) &&(typeof(basering)=="ring")) 253 { 254 return(slimgb(i)); 255 } 254 { return(slimgb(i)); } 255 256 // for module case, not already hadled by slimgb: 257 if (nrows(i)>1) 258 { return(std(i)); } 256 259 int IsSimple_P; 257 260 if (system("nblocks") <= 2) … … 300 303 int nvarP = nvars(P); 301 304 int k; 302 ideal Qideal = ideal(P); 305 ideal Qideal = ideal(P); 303 306 string ri; 304 307 … … 310 313 if (npars_P > 1) 311 314 { 312 for (k=1; k<=npars_P; k++) 313 { 314 BRlist[2][nvarP+k] = BRlist[1][2][k]; 315 for (k=1; k<=npars_P; k++) 316 { 317 BRlist[2][nvarP+k] = BRlist[1][2][k]; 315 318 } 316 319 BRlist[1]=BRlist[1][1]; … … 318 321 } 319 322 320 323 321 324 // for Hilbert driven approach, Qring structure is removed (defining ideal 322 // will be added to the ideal under consideration in the process). 325 // will be added to the ideal under consideration in the process). 323 326 if (size(BRlist[4])>0) 324 327 { 325 328 int was_qring = 1; 326 329 BRlist[4] = ideal(0); 327 } 330 } 328 331 329 332 // a homogenizing variable is added, if necessary … … 332 335 { 333 336 add_vars = add_vars + 1; 334 BRlist[2][nvarP+add_vars] = "@t@"; 337 BRlist[2][nvarP+add_vars] = "@t@"; 335 338 } 336 339 // save ordering for later use … … 339 342 // ordering is set to (dp, C) 340 343 intvec weight_dp = 1; 341 for (k=2; k<=nvarP+add_vars; k++) { weight_dp = weight_dp,1; } 344 for (k=2; k<=nvarP+add_vars; k++) { weight_dp = weight_dp,1; } 342 345 BRlist[3] = list(); 343 346 BRlist[3][1]=list("dp",weight_dp); … … 397 400 BRlist[3][1][2] = OW; 398 401 } 399 else 402 else 400 403 { 401 404 if ( IsSimple_P && (add_vars==1) && (size(ord_P)==2) && (ord_P[2][1]=="lp") )
Note: See TracChangeset
for help on using the changeset viewer.